Sha256: e1aef346b41cb594c38b4ae024e7a75ee950503c7c4dffb2c54cd33beecfdbd8

Contents?: true

Size: 718 Bytes

Versions: 5

Compression:

Stored size: 718 Bytes

Contents

# Mock objec for simulating outpu
class Output
  def messages
    @messages ||= []
  end

  def puts(message)
    messages << message
  end
end

def output
  @output ||= Output.new
end

# Create temporary file with urls
def fixture_directory
  File.expand_path('../../../spec/fixtures', __FILE__)
end

Given /^I have not started application$/ do
end

When /^I start a new application without arguments$/ do
  app = Downer::Application.new(output)
  app.run!
end

Then /^I should see "([^"]*)"$/ do |message|
  output.messages.should include(message)
end



When /^I start a new application with valid arguments$/ do
  app = Downer::Application.new(output)
  app.run!(fixture_directory + '/some_images.txt', '/tmp')
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
downer-0.3.2 features/step_definitions/downer_steps.rb
downer-0.3.1 features/step_definitions/downer_steps.rb
downer-0.3.0 features/step_definitions/downer_steps.rb
downer-0.2.2 features/step_definitions/downer_steps.rb
downer-0.1.1 features/step_definitions/downer_steps.rb