WebEditor: minor spinach fixes

This commit is contained in:
Valeriy Sizov 2012-10-12 20:27:50 +03:00
parent 2a78ae60eb
commit 47d9732a07
2 changed files with 2 additions and 2 deletions

View file

@ -24,4 +24,4 @@ Feature: Project Browse files
Scenario: I can edit file
Given I click on "Gemfile" file in repo
And I click button "Edit"
Then I can edit file
Then I can edit code

View file

@ -36,7 +36,7 @@ class ProjectBrowseFiles < Spinach::FeatureSteps
click_link 'Edit'
end
Given 'I can edit file' do
Then 'I can edit code' do
page.execute_script('editor.setValue("GitlabFileEditor")')
page.evaluate_script('editor.getValue()').should == "GitlabFileEditor"
end