Sha256: 813b267bbf3bf140ab2e4e1791f9aac097311c4c96fb0a6dac996a5978e3badb
Contents?: true
Size: 539 Bytes
Versions: 45
Compression:
Stored size: 539 Bytes
Contents
require "rails_helper" describe Dorsale::Flyboy::TaskCommentsController, type: :controller do routes { Dorsale::Engine.routes } let(:task) { create(:flyboy_task) } let(:task_comment) { create(:flyboy_task_comment, task: task) } let(:user) {create(:user)} before :each do sign_in user end 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
45 entries across 45 versions & 1 rubygems