diaspora/spec/controllers/jasmine_fixtures/posts_spec.rb
2017-08-12 18:09:13 +02:00

11 lines
346 B
Ruby

require "spec_helper"
describe PostsController, type: :controller do
describe "#show" do
it "generates the post_json fixture", fixture: true do
post = alice.post(:status_message, text: "hello world", public: true)
get :show, params: {id: post.id}, format: :json
save_fixture(response.body, "post_json")
end
end
end