Sha256: 670e26bcc95fcc2ce5b1ac53a80b05543086c891d2ddf6c7a6ba9a291b4895ee

Contents?: true

Size: 802 Bytes

Versions: 1

Compression:

Stored size: 802 Bytes

Contents

Given /^I have read the configuration file$/ do
  FigNewton.load 'test_config.yml'
end

When /^I ask for the value for "([^\"]*)"$/ do |key|
  @value = FigNewton.send key
end

Then /^I should see "([^\"]*)"$/ do |value|
  @value.should == value
end

When /^I ask for a value that does not exist named "([^\"]*)"$/ do |non_existing|
  @does_not_exist = non_existing
end

Then /^I should raise a NoMethodError exception$/ do
  expect{ FigNewton.send(@does_not_exist) }.to raise_error(NoMethodError) 
end

Then /^I should have a node$/ do
  @value.should be_an_instance_of FigNewton::Node
end

Then /^the "([^\"]*)" value for the node should be "([^\"]*)"$/ do |key, value|
  @value.send(key).should == value
end

When /^I ask for the node value for "([^\"]*)"$/ do |key|
  @value = @value.send(key)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fig_newton-0.2 features/step_definitions/fig_newton_steps.rb