Sha256: 68eea51ad2992533326e468cd61eb9fd4a9589754105866b78a7b3e0d78eb9ce

Contents?: true

Size: 1.22 KB

Versions: 2

Compression:

Stored size: 1.22 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 -a 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 -q'
  @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 -q'
  @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 -q'
  @output.should_not include 'my_js_dep, 1.2.3, MIT'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
license_finder-0.8.2-java features/step_definitions/non_bundler_steps.rb
license_finder-0.8.2 features/step_definitions/non_bundler_steps.rb