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

Version Path
dorsale-2.6.1 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.6.0 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.5.0 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.4.3 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.4.2 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.4.1 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.4.0 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.3.5 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.3.4 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.3.3 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.3.2 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.3.1 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.3.0 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.2.16 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.2.15 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.2.14 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.2.13 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.2.12 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.2.11 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb
dorsale-2.2.10 spec/controllers/dorsale/flyboy/task_comments_controller_spec.rb