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

Version Path
dorsale-3.7.6 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-3.7.5 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-3.7.4 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-3.7.2 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-3.7.1 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-3.7.0 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-3.6.1 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-3.6.0 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-3.5.2 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-3.5.1 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-3.5.0 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-3.4.0 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-3.3.0 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-3.2.0 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-3.1.7 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-3.1.6 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-3.1.5 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-3.1.4 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-3.1.3 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-3.1.2 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb