README.md in rack-app-5.7.0 vs README.md in rack-app-5.8.0
- old
+ new
@@ -197,27 +197,27 @@
# example for params and headers and payload use
subject{ get(url: '/hello', params: {'dog' => 'meat'}, headers: {'X-Cat' => 'fur'}, payload: 'some string') }
it { expect(subject.status).to eq 200 }
- it { expect(subject.body.join).to eq "Hello World!" }
+ it { expect(subject.body).to eq "Hello World!" }
end
describe '/users/:user_id' do
# restful endpoint example
subject{ get(url: '/users/1234') }
- it { expect(subject.body.join).to eq 'hello 1234!'}
+ it { expect(subject.body).to eq 'hello 1234!'}
it { expect(subject.status).to eq 201 }
end
describe '/make_error' do
# error handled example
subject{ get(url: '/make_error') }
- it { expect(subject.body.join).to eq '{:error=>"error block rescued"}' }
+ it { expect(subject.body).to eq '{:error=>"error block rescued"}' }
end
end