Sha256: 191352cc36140534a0aae574ef93a258f4ef551402ab99af630c919bae1c999c

Contents?: true

Size: 306 Bytes

Versions: 4

Compression:

Stored size: 306 Bytes

Contents

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

describe Footnotes::Notes::ViewNote do

  it "should not be valid if view file not exist" do
    note = Footnotes::Notes::ViewNote.new(double)
    allow(note).to receive(:filename).and_return(nil)

    expect(note).not_to be_valid
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
rails6-footnotes-5.0.1 spec/notes/view_note_spec.rb
rails6-footnotes-5.0.0 spec/notes/view_note_spec.rb
rails-footnotes-4.1.8 spec/notes/view_note_spec.rb
rails-footnotes-4.1.7 spec/notes/view_note_spec.rb