spec/support/shared_examples/signature/shared/resource_methods.rb in groupdocs-1.2.11 vs spec/support/shared_examples/signature/shared/resource_methods.rb in groupdocs-1.3.0
- old
+ new
@@ -5,15 +5,15 @@
mock_api_server(load_json('envelopes_resources'))
end
it 'accepts access credentials hash' do
lambda do
- described_class.resources!({}, client_id: 'client_id', private_key: 'private_key')
+ described_class.resources!({}, :client_id => 'client_id', :private_key => 'private_key')
end.should_not raise_error(ArgumentError)
end
it 'allows passing options' do
- -> { described_class.resources!(status_ids: %w(sdfj943fjof043fj)) }.should_not raise_error(ArgumentError)
+ lambda { described_class.resources!(:status_ids => %w(sdfj943fjof043fj)) }.should_not raise_error(ArgumentError)
end
it 'returns resources hash' do
described_class.resources!.should be_a(Hash)
end