spec/lib/command_spec.rb in simple_service-1.3.0 vs spec/lib/command_spec.rb in simple_service-1.3.1
- old
+ new
@@ -21,9 +21,17 @@
class CallNotDefinedCommand < SimpleService::Command
end
+ describe '.call' do
+ it 'returns the correct keys when using class method' do
+ expect(
+ ValidCommand.call(foo: 'blah', bar: 'meh')
+ ).to eql(bar: 'modified', baz: 'blah')
+ end
+ end
+
describe '#call' do
context 'when #returns is not empty' do
it 'returns the correct keys from the context' do
expect(