Sha256: d3fdc0d687b6bc272d90ffab9c866f250d84a02da3378e4c88d8137be91ea480
Contents?: true
Size: 533 Bytes
Versions: 11
Compression:
Stored size: 533 Bytes
Contents
require "rails_helper" describe Dorsale::Flyboy::TaskCommentsController, type: :controller do routes { Dorsale::Engine.routes } let(:user) { create(:user) } before(:each) { sign_in(user) } let(:task) { create(:flyboy_task) } let(:task_comment) { create(:flyboy_task_comment, task: task) } describe "#create" do it "should create the task_comment" do post :create, task_id: task.id, task_comment: task_comment.attributes expect(assigns(:task_comment).persisted?).to be true end end end
Version data entries
11 entries across 11 versions & 1 rubygems