Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Some step definitions
  • Loading branch information
DanielVartanov committed Oct 7, 2012
1 parent 0e1be75 commit 676b85f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 30 deletions.
31 changes: 5 additions & 26 deletions Gemfile
Expand Up @@ -2,43 +2,22 @@ source 'https://rubygems.org'

gem 'rails', '3.2.8'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3'


# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'

# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby

gem 'uglifier', '>= 1.0.3'
end

group :development, :test do
gem 'debugger'
end

group :test do
gem 'cucumber-rails'
gem 'cucumber-rails-training-wheels'
gem 'capybara-webkit'
gem 'database_cleaner'
end

gem 'jquery-rails'

# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# To use Jbuilder templates for JSON
# gem 'jbuilder'

# Use unicorn as the app server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'debugger'
15 changes: 11 additions & 4 deletions Gemfile.lock
Expand Up @@ -50,6 +50,7 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.3.3)
columnize (0.3.6)
cucumber (1.2.1)
builder (>= 2.1.2)
diff-lcs (>= 1.1.3)
Expand All @@ -61,6 +62,14 @@ GEM
nokogiri (>= 1.5.0)
cucumber-rails-training-wheels (1.0.0)
cucumber-rails (>= 1.1.1)
database_cleaner (0.8.0)
debugger (1.2.0)
columnize (>= 0.3.1)
debugger-linecache (~> 1.1.1)
debugger-ruby_core_source (~> 1.1.3)
debugger-linecache (1.1.2)
debugger-ruby_core_source (>= 1.1.1)
debugger-ruby_core_source (1.1.3)
diff-lcs (1.1.3)
erubis (2.7.0)
execjs (1.4.0)
Expand All @@ -71,9 +80,6 @@ GEM
hike (1.2.1)
i18n (0.6.1)
journey (1.0.4)
jquery-rails (2.1.3)
railties (>= 3.1.0, < 5.0)
thor (~> 0.14)
json (1.7.5)
libwebsocket (0.1.5)
addressable
Expand Down Expand Up @@ -146,7 +152,8 @@ DEPENDENCIES
coffee-rails (~> 3.2.1)
cucumber-rails
cucumber-rails-training-wheels
jquery-rails
database_cleaner
debugger
rails (= 3.2.8)
sass-rails (~> 3.2.3)
sqlite3
Expand Down
17 changes: 17 additions & 0 deletions features/step_definitions/navigation_steps.rb
@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-

Given /я нахожусь на странице регистрации/ do
visit '/signup'
end

When /ввожу "(.*)" в поле "(.*)"$/ do |value, field|
fill_in(field, :with => value)
end

When /нажимаю "(.*)"$/ do |button|
click_button(button)
end

Then /должен увидеть "(.*)"$/ do |text|
page.should have_content(text)
end

0 comments on commit 676b85f

Please sign in to comment.