Sha256: cd7bd53ebecdd14c98a2d5c7d93d79c59a4a298601cff8024ae111c3a8f8a1e3

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 == "The my_js_dep dependency has been added and approved!\n"
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-0.9.3-java features/step_definitions/non_bundler_steps.rb
license_finder-0.9.3 features/step_definitions/non_bundler_steps.rb
license_finder-0.9.2-java features/step_definitions/non_bundler_steps.rb
license_finder-0.9.2 features/step_definitions/non_bundler_steps.rb
license_finder-0.9.1-java features/step_definitions/non_bundler_steps.rb
license_finder-0.9.1 features/step_definitions/non_bundler_steps.rb
license_finder-0.9.0-java features/step_definitions/non_bundler_steps.rb
license_finder-0.9.0 features/step_definitions/non_bundler_steps.rb