From 47d9732a07ef0aa626efdf745d456bff90fe30f8 Mon Sep 17 00:00:00 2001 From: Valeriy Sizov Date: Fri, 12 Oct 2012 20:27:50 +0300 Subject: [PATCH] WebEditor: minor spinach fixes --- features/project/source/browse_files.feature | 2 +- features/steps/project/project_browse_files.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/project/source/browse_files.feature b/features/project/source/browse_files.feature index 9a635fa6..9b650d64 100644 --- a/features/project/source/browse_files.feature +++ b/features/project/source/browse_files.feature @@ -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 diff --git a/features/steps/project/project_browse_files.rb b/features/steps/project/project_browse_files.rb index 17b81a6f..b0a09957 100644 --- a/features/steps/project/project_browse_files.rb +++ b/features/steps/project/project_browse_files.rb @@ -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