Created
April 9, 2012 21:18
-
-
Save chischaschos/2346606 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(stable_spree_version) 184m $ cuke features/people_signs_up.feature:9 | |
Using the default profile... | |
WARNING: No DRb server is running. Running features locally: | |
[DEPRECATION WARNING] Nested I18n namespace lookup under "activerecord.attributes.spree/order" is no longer supported | |
.....F-QFont::setPixelSize: Pixel size <= 0 (0) | |
(::) failed steps (::) | |
expected: "/sales" | |
got: "/account" (using ==) (RSpec::Expectations::ExpectationNotMetError) | |
./features/step_definitions/web_steps.rb:190:in `/^(?:|I )should be on (.+)$/' | |
features/people_signs_up.feature:12:in `Then I should be on the sales page' | |
Failing Scenarios: | |
cucumber features/people_signs_up.feature:6 # Scenario: I successfully create a new account | |
1 scenario (1 failed) | |
7 steps (1 failed, 1 skipped, 5 passed) | |
0m9.448s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@javascript | |
Feature: People signs up | |
As a non logged in user | |
I want to sign up | |
Scenario: I successfully create a new account | |
Given the admin account "[email protected]" already exists | |
And I go to the signup page | |
And I enter my email | |
And I accept the terms and conditions | |
When I press Sign Up | |
Then I should be on the sales page | |
And I should see the invites dialog |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Given /^the admin account "([^"]*)" already exists$/ do |email| | |
step "an admin exists with email \"#{email}\" and password \"123test123\"" | |
end | |
Given /^an admin exists with email "([^"]*)" and password "([^"]*)"$/ do |email, password| | |
admin = Spree::User.create! email: email, password: password, agree_terms: "1" | |
admin.roles << Spree::Role.find_or_create_by_name("admin") | |
admin.save! | |
end | |
Given /^I enter my email$/ do | |
fill_in 'user_email', with: '[email protected]' | |
end | |
Given /^I accept the terms and conditions$/ do | |
check 'user_agree_terms' | |
end | |
When /^I press Sign Up$/ do | |
click_button 'lets engage' | |
end | |
Then /^I should be logged in$/ do | |
page.should have_content('Logged in') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment