Sha256: 447059c40472dcdf88ef87224af768928d2e780ff1cd6d378bf41f37dd1fae43

Contents?: true

Size: 778 Bytes

Versions: 2

Compression:

Stored size: 778 Bytes

Contents

When /^I call "([^"]*)" with parameters "([^"]*)"$/ do |api_method, parameters|
  @method = lambda { eval("@fc.#{api_method}(#{parameters})") }
  @method.should_not be_nil
end

Then /^I should receive an? "([^"]*)"$/ do |result_type|
  result = @method.call
  result.class.should == eval("#{result_type}")
end

Then /^I should receive an exception of type "([^"]*)"$/ do |exception_type|
  result = @method.should raise_error(eval("#{exception_type}"))
end

Then /^that String should be in the form x\.x\.x$/ do
  @result.should match(/\d\.\d(\.\d)?/)
end

Then /^that Array should contain Strings$/ do
  @result.each do |r|
    r.class.should == eval('String')
  end
end

Given /^I have a list of repositories$/ do
  @repos = @fc.repositories
  @result.should_not be_empty
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fisheye-crucible-0.0.2 features/step_definitions/client_legacy_steps.rb
fisheye-crucible-0.0.1 features/step_definitions/client_legacy_steps.rb