Sha256: ccf9cbb465cf76f824347bb52af11e976bfded65b26d9f2fd183e737eb97d0e0

Contents?: true

Size: 1.24 KB

Versions: 8

Compression:

Stored size: 1.24 KB

Contents

Given(/^I have an app with license finder and a JS dependency$/) do
  @user = ::DSL::User.new
  @user.create_nonrails_app
  @output = @user.execute_command 'license_finder dependencies add MIT my_js_dep 1.2.3'
end

When(/^I add my JS dependency$/) do
  @output = @user.execute_command 'license_finder dependencies add MIT my_js_dep 1.2.3'
end

When(/^I add my JS dependency with an approval flag$/) do
  @output = @user.execute_command 'license_finder dependencies add --approve MIT my_js_dep 1.2.3'
  @output.should match /The my_js_dep dependency has been added and approved/
end

When(/^I remove my JS dependency$/) do
  @user.execute_command 'license_finder dependencies remove my_js_dep'
end

Then(/^I should see the JS dependency in the console output$/) do
  @output = @user.execute_command 'license_finder --quiet'
  @output.should include 'my_js_dep, 1.2.3, MIT'
end

Then(/^I should not see the JS dependency in the console output$/) do
  @output = @user.execute_command 'license_finder --quiet'
  @output.should_not include 'my_js_dep, 1.2.3, MIT'
end

Then(/^I should not see the JS dependency in the console output since it is approved$/) do
  @output = @user.execute_command 'license_finder --quiet'
  @output.should_not include 'my_js_dep, 1.2.3, MIT'
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
license_finder-1.0.0.0 features/step_definitions/manually_managed_steps.rb
license_finder-1.0.0.0-java features/step_definitions/manually_managed_steps.rb
license_finder-0.9.5.1-java features/step_definitions/manually_managed_steps.rb
license_finder-0.9.5.1 features/step_definitions/manually_managed_steps.rb
license_finder-0.9.5 features/step_definitions/manually_managed_steps.rb
license_finder-0.9.5-java features/step_definitions/manually_managed_steps.rb
license_finder-0.9.4-java features/step_definitions/non_bundler_steps.rb
license_finder-0.9.4 features/step_definitions/non_bundler_steps.rb