Sha256: 98a73d7050ef45763bc60fdeba918e7defdcda61e3b48652325991480b228c60

Contents?: true

Size: 1.31 KB

Versions: 54

Compression:

Stored size: 1.31 KB

Contents

require 'spec/expectations'

Given "be_empty" do
  [1,2].should_not be_empty
end

Given "nested step is called" do
  Given "I like mushroom", Cucumber::Ast::Table.new([
    %w{sponge bob},
    %w{is cool}
  ])
end

Given 'nested step is called using text table' do
  Given "I like mushroom", table(%{
    | sponge | bob  |
    | is     | cool |
  })

  # Alternative syntax (file and line will be reported on parse error)
  # Given "I like mushroom", table(<<-EOT, __FILE__, __LINE__)
  #   | sponge | bob  |
  #   | is     | cool
  # EOT
end

Given "I like $what" do |what, table|
  @magic = what
  @tool  = table.raw[0][0]
end

Then "nested step should be executed" do
  @magic.should == 'mushroom'
  @tool.should == 'sponge'
end

Given /^the following table$/ do |table|
  @table = table
end

Then /^I should be (\w+) in (\w+)$/ do |key, value|
  hash = @table.hashes[0]
  hash[key].should == value
end

Then /^I should see a multiline string like$/ do |s|
  s.should == %{A string
that spans
several lines}
end

Given /^the following users exist in the system$/ do |table|
  table.hashes[0][:role_assignments].should == 'HUMAN RESOURCE'
end

Given /^I have a pending step$/ do
  pending
end

When /^I run this feature with the progress format$/ do
  pending
end

Then /^I should get a no method error for 'backtrace_line'$/ do
  pending
end

Version data entries

54 entries across 54 versions & 6 rubygems

Version Path
aslakhellesoy-cucumber-0.3.0.1 examples/tickets/features/step_definitons/tickets_steps.rb
aslakhellesoy-cucumber-0.3.0 examples/tickets/features/step_definitons/tickets_steps.rb
aslakhellesoy-cucumber-0.3.1.1 examples/tickets/features/step_definitons/tickets_steps.rb
aslakhellesoy-cucumber-0.3.1 examples/tickets/features/step_definitons/tickets_steps.rb
aslakhellesoy-cucumber-0.3.10 examples/tickets/features/step_definitons/tickets_steps.rb
aslakhellesoy-cucumber-0.3.11.1 examples/tickets/features/step_definitons/tickets_steps.rb
aslakhellesoy-cucumber-0.3.11.3 examples/tickets/features/step_definitons/tickets_steps.rb
aslakhellesoy-cucumber-0.3.11.5 examples/tickets/features/step_definitons/tickets_steps.rb
aslakhellesoy-cucumber-0.3.11.6 examples/tickets/features/step_definitons/tickets_steps.rb
aslakhellesoy-cucumber-0.3.11 examples/tickets/features/step_definitons/tickets_steps.rb
aslakhellesoy-cucumber-0.3.2 examples/tickets/features/step_definitons/tickets_steps.rb
aslakhellesoy-cucumber-0.3.3.1 examples/tickets/features/step_definitons/tickets_steps.rb
aslakhellesoy-cucumber-0.3.3.2 examples/tickets/features/step_definitons/tickets_steps.rb
aslakhellesoy-cucumber-0.3.3.3 examples/tickets/features/step_definitons/tickets_steps.rb
aslakhellesoy-cucumber-0.3.3.4 examples/tickets/features/step_definitons/tickets_steps.rb
aslakhellesoy-cucumber-0.3.3.5 examples/tickets/features/step_definitons/tickets_steps.rb
aslakhellesoy-cucumber-0.3.3.6 examples/tickets/features/step_definitons/tickets_steps.rb
aslakhellesoy-cucumber-0.3.3 examples/tickets/features/step_definitons/tickets_steps.rb
aslakhellesoy-cucumber-0.3.4 examples/tickets/features/step_definitons/tickets_steps.rb
aslakhellesoy-cucumber-0.3.5 examples/tickets/features/step_definitons/tickets_steps.rb