Sha256: df774cc9b435ec47e06db9fbc289c46d6843d1a5e80d517f62082fa296c99cce

Contents?: true

Size: 355 Bytes

Versions: 9

Compression:

Stored size: 355 Bytes

Contents

require "spec_helper"
require "rails-footnotes/notes/controller_note"

describe Footnotes::Notes::ControllerNote do
  # Issue #60
  it "should not be valid if conftroller file not exist" do
    note = Footnotes::Notes::ControllerNote.new(double)
    allow(note).to receive(:controller_filename).and_return(nil)

    expect(note).not_to be_valid
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
rails-footnotes-7.1.0 spec/notes/controller_note_spec.rb
rails-footnotes-7.0.1 spec/notes/controller_note_spec.rb
rails-footnotes-7.0.0 spec/notes/controller_note_spec.rb
rails-footnotes-5.0.0 spec/notes/controller_note_spec.rb
rails6-footnotes-5.0.2 spec/notes/controller_note_spec.rb
rails6-footnotes-5.0.1 spec/notes/controller_note_spec.rb
rails6-footnotes-5.0.0 spec/notes/controller_note_spec.rb
rails-footnotes-4.1.8 spec/notes/controller_note_spec.rb
rails-footnotes-4.1.7 spec/notes/controller_note_spec.rb