spec/unit/action_spec.rb in siren_client-0.1.1 vs spec/unit/action_spec.rb in siren_client-0.2.0
- old
+ new
@@ -50,9 +50,13 @@
end
describe '.href' do
it 'is a string' do
expect(action.href).to be_a String
end
+ it 'can change .href as needed' do
+ action.href = action.href + '?query=test'
+ expect(/query=test/).to match(action.href)
+ end
end
describe '.title' do
it 'is a string' do
expect(action.title).to be_a String
end