spec/pref_spec.rb in cliutils-2.2.3 vs spec/pref_spec.rb in cliutils-2.2.4
- old
+ new
@@ -100,11 +100,11 @@
expect(pref.config_key).to eq(pref_data[:config_key])
expect(pref.config_section).to eq(pref_data[:config_section])
expect(pref.default).to eq(pref_data[:default])
expect(pref.last_error_message).to eq(nil)
expect(pref.options).to eq(['bachya'])
- expect(pref.post).to eq({message: 'Test post message', action: { name: '/Users/abach/Git/cliutils/spec/../support/test_action.rb' } })
- expect(pref.pre).to eq({message: 'Test pre message', action: { name: '/Users/abach/Git/cliutils/spec/../support/test_action.rb', parameters: { param1: 'value1'} } })
+ expect(pref.post).to eq({message: 'Test post message', action: { name: File.join(base_path, 'test_action.rb') } })
+ expect(pref.pre).to eq({message: 'Test pre message', action: { name: File.join(base_path, 'test_action.rb'), parameters: { param1: 'value1'} } })
expect(pref.prereqs).to eq([{ config_section: 'section' }, { config_value: 'value' }])
expect(pref.validator_objects[0].class).to eq(CLIUtils::TestValidator)
expect(pref.validators).to eq([File.join(base_path, 'test_validator.rb')])
end