Sha256: cac2ebb3687f635c5566d01344491aceb704412fd84a97b8d3b2c3628f24cece

Contents?: true

Size: 1003 Bytes

Versions: 2

Compression:

Stored size: 1003 Bytes

Contents

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

When(/^I add my JS dependency$/) do
  @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
  @user.execute_command 'license_finder dependencies add --approve MIT my_js_dep 1.2.3'
  expect(@user).to be_seeing "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
  @user.execute_command 'license_finder --quiet'
  expect(@user).to be_seeing 'my_js_dep, 1.2.3, MIT'
end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
license_finder-1.2 features/step_definitions/manually_added_steps.rb
license_finder-1.2-java features/step_definitions/manually_added_steps.rb