Sha256: 169e61071665c5d8eadde2b9fb6c3872b86074de7436eb6a57cc94267d325ae9
Contents?: true
Size: 543 Bytes
Versions: 26
Compression:
Stored size: 543 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, params: {task_id: task.id, task_comment: task_comment.attributes} expect(assigns(:task_comment).persisted?).to be true end end end
Version data entries
26 entries across 26 versions & 1 rubygems