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

Version Path
dorsale-2.7.3 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.7.2 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.7.1 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.7.0 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.6.8 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.6.7 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.6.6 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.6.5 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.6.4 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.6.3 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.6.2 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb