Given(/^I have an app with license finder that depends on an MIT license$/) do @user = ::DSL::User.new @user.create_nonrails_app @user.add_dependency_to_app 'mit_gem', :license => 'MIT' end When(/^I whitelist the Expat license$/) do @user.configure_license_finder_whitelist ["Expat"] @output = @user.execute_command 'license_finder -q' end Then(/^I should not see a MIT licensed gem unapproved$/) do @output.should_not include 'mit_gem' end