Skip to content

Instantly share code, notes, and snippets.

@andrijaperovic
Created November 20, 2015 23:43
Show Gist options
  • Save andrijaperovic/0055f6be3774b4f24bff to your computer and use it in GitHub Desktop.
Save andrijaperovic/0055f6be3774b4f24bff to your computer and use it in GitHub Desktop.
expected: 422
got: 201 (using ==) (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/api_steps.rb:34:in `/^the( nested)? response code should be (\d+)$/'
features/api/berlin/roles/admin/activity_limiting.feature:93:in `Then I should see 422 and JSON with the following:'
expected: 422
got: 201 (using ==) (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/api_steps.rb:34:in `/^the( nested)? response code should be (\d+)$/'
features/api/berlin/roles/admin/activity_limiting.feature:119:in `Then I should see 422 and JSON with the following:'
expected: 422
got: 201 (using ==) (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/api_steps.rb:34:in `/^the( nested)? response code should be (\d+)$/'
features/api/berlin/roles/admin/activity_limiting.feature:146:in `Then I should see 422 and JSON with the following:'
expected: 422
got: 201 (using ==) (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/api_steps.rb:34:in `/^the( nested)? response code should be (\d+)$/'
features/api/berlin/roles/admin/activity_limiting.feature:200:in `Then I should see 422 and JSON with the following:'
expected: 422
got: 201 (using ==) (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/api_steps.rb:34:in `/^the( nested)? response code should be (\d+)$/'
features/api/berlin/roles/admin/activity_limiting.feature:261:in `Then I should see 422 and JSON with the following:'
expected: 422
got: 201 (using ==) (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/api_steps.rb:34:in `/^the( nested)? response code should be (\d+)$/'
features/api/berlin/roles/admin/activity_limiting.feature:295:in `Then I should see 422 and JSON with the following:'
expected: 201
got: 422 (using ==) (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/api_steps.rb:34:in `/^the( nested)? response code should be (\d+)$/'
features/api/berlin/roles/admin/levels.feature:207:in `Then I should see 201 and JSON with the following:'
expected: 201
got: 422 (using ==) (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/api_steps.rb:34:in `/^the( nested)? response code should be (\d+)$/'
features/api/berlin/roles/admin/reward_definitions.feature:102:in `Then I should see 201 and JSON with the following:'
expected: > 0
got: 0 (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/api_steps.rb:303:in `block (2 levels) in <top (required)>'
./features/step_definitions/api_steps.rb:253:in `each'
./features/step_definitions/api_steps.rb:253:in `/^I should (NOT )?see (paged )?(cairo )?JSON (at position \d+ )?with the following:$/'
features/api/berlin/roles/admin/reward_definitions.feature:136:in `Then I should see 422 and JSON with the following:'
expected: 201
got: 422 (using ==) (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/api_steps.rb:34:in `/^the( nested)? response code should be (\d+)$/'
features/api/berlin/roles/admin/reward_definitions.feature:148:in `Then I should see 201 and JSON with the following:'
expected: > 0
got: 0 (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/api_steps.rb:303:in `block (2 levels) in <top (required)>'
./features/step_definitions/api_steps.rb:253:in `each'
./features/step_definitions/api_steps.rb:253:in `/^I should (NOT )?see (paged )?(cairo )?JSON (at position \d+ )?with the following:$/'
features/api/berlin/roles/admin/reward_definitions.feature:161:in `Then I should see 422 and JSON with the following:'
expected: > 0
got: 0 (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/api_steps.rb:303:in `block (2 levels) in <top (required)>'
./features/step_definitions/api_steps.rb:253:in `each'
./features/step_definitions/api_steps.rb:253:in `/^I should (NOT )?see (paged )?(cairo )?JSON (at position \d+ )?with the following:$/'
features/api/berlin/roles/admin/reward_definitions.feature:174:in `Then I should see 422 and JSON with the following:'
expected: > 0
got: 0 (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/api_steps.rb:303:in `block (2 levels) in <top (required)>'
./features/step_definitions/api_steps.rb:253:in `each'
./features/step_definitions/api_steps.rb:253:in `/^I should (NOT )?see (paged )?(cairo )?JSON (at position \d+ )?with the following:$/'
features/api/berlin/roles/admin/reward_definitions.feature:196:in `Then I should see 422 and JSON with the following:'
expected: 201
got: 422 (using ==) (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/api_steps.rb:34:in `/^the( nested)? response code should be (\d+)$/'
features/api/berlin/roles/enterprise/levels.feature:207:in `Then I should see 201 and JSON with the following:'
expected: 201
got: 422 (using ==) (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/api_steps.rb:34:in `/^the( nested)? response code should be (\d+)$/'
features/api/berlin/roles/enterprise/reward_definitions.feature:49:in `Then I should see 201 and JSON with the following:'
expected: > 0
got: 0 (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/api_steps.rb:303:in `block (2 levels) in <top (required)>'
./features/step_definitions/api_steps.rb:253:in `each'
./features/step_definitions/api_steps.rb:253:in `/^I should (NOT )?see (paged )?(cairo )?JSON (at position \d+ )?with the following:$/'
features/api/berlin/roles/enterprise/reward_definitions.feature:83:in `Then I should see 422 and JSON with the following:'
Real HTTP connections are disabled. Unregistered request: GET https://api.twitter.com/1.1/users/show.json?screen_name=teh_jimster (FakeWeb::NetConnectNotAllowedError)
/Users/Su/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/net/http.rb:1027:in `get'
./app/models/social_identity.rb:228:in `existing_handle'
./features/step_definitions/general_steps.rb:26:in `/^there is an? (\w+) with the following:$/'
features/api/cairo/roles/cairo/players/site/includes/includes.feature:71:in `Given there is a social_identity with the following:'
expected: 2
got: 0 (using ==) (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/leaderboard_steps.rb:20:in `/^leaderboard ["'](.*?[^\])["'] should have (\d+) positions$/'
features/api/cairo/roles/cairo/ranks/player/ranks.feature:223:in `Then leaderboard "Biggest Loser" should have 2 positions'
Real HTTP connections are disabled. Unregistered request: GET https://api.twitter.com/1.1/users/show.json?screen_name=teh_jimster (FakeWeb::NetConnectNotAllowedError)
/Users/Su/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/net/http.rb:1027:in `get'
./app/models/social_identity.rb:228:in `existing_handle'
./features/step_definitions/general_steps.rb:26:in `/^there is an? (\w+) with the following:$/'
features/api/cairo/roles/cairo/search/social_identity_querying.feature:18:in `Given there is a social_identity with the following:'
Real HTTP connections are disabled. Unregistered request: GET https://api.twitter.com/1.1/users/show.json?screen_name=teh_jimster (FakeWeb::NetConnectNotAllowedError)
/Users/Su/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/net/http.rb:1027:in `get'
./app/models/social_identity.rb:228:in `existing_handle'
./features/step_definitions/general_steps.rb:26:in `/^there is an? (\w+) with the following:$/'
features/api/cairo/roles/cairo/social_identities/fields.feature:6:in `Given there is a social_identity with the following:'
Real HTTP connections are disabled. Unregistered request: GET https://api.twitter.com/1.1/users/show.json?screen_name=jane (FakeWeb::NetConnectNotAllowedError)
/Users/Su/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/net/http.rb:1027:in `get'
./app/models/social_identity.rb:228:in `existing_handle'
./features/step_definitions/general_steps.rb:26:in `/^there is an? (\w+) with the following:$/'
features/api/cairo/roles/cairo/social_identities/with_count.feature:8:in `And there are social_identities with the following:'
Real HTTP connections are disabled. Unregistered request: GET https://api.twitter.com/1.1/users/show.json?screen_name=jane1 (FakeWeb::NetConnectNotAllowedError)
/Users/Su/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/net/http.rb:1027:in `get'
./app/models/social_identity.rb:228:in `existing_handle'
./features/step_definitions/general_steps.rb:26:in `/^there is an? (\w+) with the following:$/'
features/api/cairo/roles/cairo/social_identities/with_links.feature:9:in `And there are social_identities with the following:'
expected: 1
got: 0 (using ==) (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/general_steps.rb:242:in `/^there should be (\d+) (\w+)$/'
features/web/roles/admin/advanced_rewards.feature:47:in `Then there should be 1 reward'
expected: 1
got: 0 (using ==) (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/general_steps.rb:242:in `/^there should be (\d+) (\w+)$/'
features/web/roles/admin/advanced_rewards.feature:75:in `Then there should be 1 reward'
expected: 3
got: 0 (using ==) (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/general_steps.rb:242:in `/^there should be (\d+) (\w+)$/'
features/web/roles/admin/advanced_rewards.feature:130:in `Then there should be 3 rewards'
expected: 1
got: 0 (using ==) (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/general_steps.rb:242:in `/^there should be (\d+) (\w+)$/'
features/web/roles/admin/levels.feature:57:in `Then there should be 1 reward'
No route matches [GET] "/api/berlin/private_key/reward_definitions/.json" (ActionController::RoutingError)
./features/support/cucumber_helper.rb:293:in `make_my_request'
./features/step_definitions/api_steps.rb:18:in `/^(posting|getting|putting|deleting) ["'](.*?[^\])["']$/'
features/web/roles/admin/levels.feature:84:in `When getting "reward_definitions/<TeamsOnlyLevel>.json"'
cannot fill in, no text field, text area or password field with id, name, or label 'player_meta_definition[name]' found (Capybara::ElementNotFound)
(eval):2:in `fill_in'
./features/step_definitions/web_steps.rb:45:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:44:in `/^(?:|I )fill in "([^"]*)" with ["'](.*?)["'](?: within ["'](.*?[^\])["'])?$/'
features/web/roles/admin/player_meta_definitions.feature:19:in `And I fill in the following:'
Missing template player_meta_definitions/show, front_end/show, bare_front_end/show, application/show with {:handlers=>[:erb, :builder, :slim, :haml], :formats=>[:html], :locale=>[:en, :en]}. Searched in:
* "/Users/Su/projects/badgeville/app/views"
* "/Users/Su/.rvm/gems/ruby-1.9.3-p448@badgeville.badgeville.master/gems/kaminari-0.13.0/app/views"
(ActionView::MissingTemplate)
/Users/Su/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
(eval):2:in `click_button'
./features/step_definitions/web_steps.rb:33:in `block (2 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:32:in `/^(?:|I )press "([^"]*)"(?: within "([^"]*)")?$/'
features/web/roles/admin/player_meta_definitions.feature:32:in `And I press "Save"'
No HTTP_REFERER was set in the request to this action, so redirect_to :back could not be called successfully. If this is a test, make sure to specify request.env["HTTP_REFERER"]. (ActionController::RedirectBackError)
./lib/bulk_actions.rb:46:in `block (2 levels) in process_bulk_action'
./lib/bulk_actions.rb:43:in `process_bulk_action'
./lib/bulk_actions.rb:17:in `block (2 levels) in bulk_actions'
./features/support/cucumber_helper.rb:293:in `make_my_request'
./features/step_definitions/api_steps.rb:14:in `/^(posting|getting|putting|deleting) ["'](.*?[^\])["'] in admin console with the following:$/'
features/web/roles/admin/sites.feature:47:in `When posting "sites/bulk/delete" in admin console with the following:'
Failing Scenarios:
cucumber [ ] features/api/berlin/roles/admin/activity_limiting.feature:73 # Scenario: Redis Rate limiting using ONCE per hour
cucumber [ ] features/api/berlin/roles/admin/activity_limiting.feature:97 # Scenario: Redis Rate limiting using ONCE per hour with custom created_at time
cucumber [ ] features/api/berlin/roles/admin/activity_limiting.feature:122 # Scenario: Rate limiting with scope using ONCE per hour
cucumber [ ] features/api/berlin/roles/admin/activity_limiting.feature:174 # Scenario: Rate limiting with scope using ONCE per hour with passing in created_at time
cucumber [ ] features/api/berlin/roles/admin/activity_limiting.feature:235 # Scenario: Redis Rate limiting using MULTIPLE per hour
cucumber [ ] features/api/berlin/roles/admin/activity_limiting.feature:264 # Scenario: Rate limiting with scope using ONCE per hour
cucumber [x] features/api/berlin/roles/admin/levels.feature:199 # Scenario: CREATE
cucumber [x] features/api/berlin/roles/admin/reward_definitions.feature:94 # Scenario: CREATE
cucumber [x] features/api/berlin/roles/admin/reward_definitions.feature:128 # Scenario: CREATE requires a verb
cucumber [x] features/api/berlin/roles/admin/reward_definitions.feature:139 # Scenario: CREATE dosnt require a verb if player criteria is provided
cucumber [x] features/api/berlin/roles/admin/reward_definitions.feature:152 # Scenario: CREATE require a verb if components are specified
cucumber [x] features/api/berlin/roles/admin/reward_definitions.feature:164 # Scenario: CREATE requires a verb if performed by team
cucumber [x] features/api/berlin/roles/admin/reward_definitions.feature:188 # Scenario: CREATE validate player_id or site_id scope
cucumber [x] features/api/berlin/roles/enterprise/levels.feature:199 # Scenario: CREATE
cucumber [x] features/api/berlin/roles/enterprise/reward_definitions.feature:41 # Scenario: CREATE
cucumber [x] features/api/berlin/roles/enterprise/reward_definitions.feature:75 # Scenario: CREATE validate player_id or site_id scope
cucumber [ ] features/api/cairo/roles/cairo/players/site/includes/includes.feature:102 # Scenario: LIST Players (Multiple Includes)
cucumber [ ] features/api/cairo/roles/cairo/ranks/player/ranks.feature:209 # Scenario: READ leaderboard player rank: should fail when given an invalid rank ID when allow_negative is set to true
cucumber [ ] features/api/cairo/roles/cairo/search/social_identity_querying.feature:27 # Scenario: Querying for a social identity by id
cucumber [ ] features/api/cairo/roles/cairo/social_identities/fields.feature:12 # Scenario: LIST social identities (All Fields)
cucumber [ ] features/api/cairo/roles/cairo/social_identities/with_count.feature:15 # Scenario: LIST social identities: should not return total count if ?with_count= is not passed
cucumber [ ] features/api/cairo/roles/cairo/social_identities/with_links.feature:30 # Scenario: LIST social identities: should not return links if not requested
cucumber [ ] features/web/roles/admin/advanced_rewards.feature:28 # Scenario: CREATE a reward definition for a player
cucumber [ ] features/web/roles/admin/advanced_rewards.feature:55 # Scenario: CREATE a reward definition for a team (Lombardi Trophy)
cucumber [ ] features/web/roles/admin/advanced_rewards.feature:92 # Scenario: CREATE a reward definition for a team-wide reward (Superbowl Ring)
cucumber [ ] features/web/roles/admin/levels.feature:35 # Scenario: CREATE a level with Type set to "Player"
cucumber [ ] features/web/roles/admin/levels.feature:65 # Scenario: CREATE a level with Type set to "Team"
cucumber [ ] features/web/roles/admin/player_meta_definitions.feature:16 # Scenario: CREATE
cucumber [ ] features/web/roles/admin/player_meta_definitions.feature:27 # Scenario: UPDATE
cucumber [ ] features/web/roles/admin/sites.feature:33 # Scenario: BULK DELETE should trigger correct kafka messages and remove app_tokens on social streams
3717 scenarios (30 failed, 60 skipped, 2 undefined, 3625 passed)
41500 steps (30 failed, 1023 skipped, 2 undefined, 40445 passed)
107m53.667s
You can implement step definitions for undefined steps with these snippets:
When /^kafka should receive no messages$/ do
pending # express the regexp above with the code you wish you had
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment