Remove duplicate coverage in spec requests. All features should be covered in cucumber
This commit is contained in:
parent
3079687b93
commit
6de4882597
18 changed files with 39 additions and 589 deletions
|
@ -38,3 +38,13 @@ end
|
|||
Then /^I should see raw file content$/ do
|
||||
page.source.should == ValidCommit::BLOB_FILE
|
||||
end
|
||||
|
||||
Given /^I click blame button$/ do
|
||||
click_link "blame"
|
||||
end
|
||||
|
||||
Then /^I should see git file blame$/ do
|
||||
page.should have_content("rubygems.org")
|
||||
page.should have_content("Dmitriy Zaporozhets")
|
||||
page.should have_content("bc3735004cb Moving to rails 3.2")
|
||||
end
|
||||
|
|
|
@ -36,3 +36,16 @@ Then /^I should see new token$/ do
|
|||
find("#token").value.should == @user.reload.private_token
|
||||
end
|
||||
|
||||
Then /^I change my contact info$/ do
|
||||
fill_in "user_skype", :with => "testskype"
|
||||
fill_in "user_linkedin", :with => "testlinkedin"
|
||||
fill_in "user_twitter", :with => "testtwitter"
|
||||
click_button "Save"
|
||||
@user.reload
|
||||
end
|
||||
|
||||
Then /^I should see new contact info$/ do
|
||||
@user.skype.should == 'testskype'
|
||||
@user.linkedin.should == 'testlinkedin'
|
||||
@user.twitter.should == 'testtwitter'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue