Sha256: b212aed21222bc9212386429c8c251e333a48c9b820b31dc08dd1178ecd93d13

Contents?: true

Size: 371 Bytes

Versions: 4

Compression:

Stored size: 371 Bytes

Contents

Given /I have created a new (.*) instance/ do |n|
  @instance = Shorty::Trim.new()
end

Given /I want to shorten (.*)/ do |n|
  @url = @instance.shorten(n)
end

Then /^I should see "([^\"]*)"$/ do |text|
  actual_output = File.read(@stdout)
  actual_output.should contain(text)
end

Then /the URL should look like "([^\"]*)"$/ do |text|
  @url.should contain(text)
end


Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
drcapulet-shorty-0.1.0 features/step_definitions/api.rb
drcapulet-shorty-0.1.1 features/step_definitions/api.rb
shorty-0.1.2 features/step_definitions/api.rb
shorty-0.1.1 features/step_definitions/api.rb