Sha256: 61c0e35ecc82c18345b3d7a5b98e111296be3cad276d3b7b79b0fc1c2c9a689e

Contents?: true

Size: 1.85 KB

Versions: 85

Compression:

Stored size: 1.85 KB

Contents

begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end

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

Given /^I have (\d+) cukes in my belly$/ do |arg1|
end

Given /^I call empty steps$/ do
  steps ""
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

Then /the table should be different with table:/ do |expected|
  expected.diff!(table(%{
    | b     | c    | a     | d |
    | KASHA | AIIT | BOOYA | X |
    | four  | five | three | Y |
  }), :coldiff => true)
end

Then /the table should be different with array:/ do |expected|
  expected.diff!([
    {'a' => 'BOOYA', 'b' => 'KASHA'},
    {'a' => 'three', 'b' => 'four'},
  ])
end

Version data entries

85 entries across 81 versions & 12 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/cucumber-1.3.18/fixtures/tickets/features/step_definitons/tickets_steps.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/cucumber-1.3.18/fixtures/tickets/features/step_definitons/tickets_steps.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/cucumber-1.3.16/fixtures/tickets/features/step_definitons/tickets_steps.rb
cucumber-1.3.20 fixtures/tickets/features/step_definitons/tickets_steps.rb
cucumber-1.3.19 fixtures/tickets/features/step_definitons/tickets_steps.rb
cucumber-1.3.18 fixtures/tickets/features/step_definitons/tickets_steps.rb
cucumber-1.3.17 fixtures/tickets/features/step_definitons/tickets_steps.rb
cucumber-1.3.16 fixtures/tickets/features/step_definitons/tickets_steps.rb
cucumber-1.3.15 fixtures/tickets/features/step_definitons/tickets_steps.rb
cucumber-1.3.14 fixtures/tickets/features/step_definitons/tickets_steps.rb
cucumber-1.3.13 fixtures/tickets/features/step_definitons/tickets_steps.rb
cucumber-1.3.12 fixtures/tickets/features/step_definitons/tickets_steps.rb
cucumber-1.3.11 fixtures/tickets/features/step_definitons/tickets_steps.rb
cucumber-1.3.10 fixtures/tickets/features/step_definitons/tickets_steps.rb
cucumber-1.3.9 fixtures/tickets/features/step_definitons/tickets_steps.rb
candlepin-api-0.4.0 bundle/ruby/1.8/gems/cucumber-1.2.1/fixtures/tickets/features/step_definitons/tickets_steps.rb
candlepin-api-0.4.0 bundle/ruby/gems/cucumber-1.2.1/fixtures/tickets/features/step_definitons/tickets_steps.rb
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/cucumber-1.2.1/fixtures/tickets/features/step_definitons/tickets_steps.rb
cucumber-1.3.8 fixtures/tickets/features/step_definitons/tickets_steps.rb
cucumber-1.3.7 fixtures/tickets/features/step_definitons/tickets_steps.rb