Skip to content

Instantly share code, notes, and snippets.

@luizkowalski
Last active August 29, 2015 13:59
Show Gist options
  • Save luizkowalski/10978849 to your computer and use it in GitHub Desktop.
Save luizkowalski/10978849 to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe StatusController do
describe "GET status_jid" do
it "deve retornar o status do job" do
jid = "2a5ee8e6244fffa63263f9d6"
get 'status_jid', {jid: jid}
json = JSON.parse(response.body)
json = OpenStruct.new json
expect(response).to be_success
json.status.should be_false
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment