Sha256: 3a03568c78257b1ca68aff3177896d3823339264c214478209a8d38d1d4743cc

Contents?: true

Size: 336 Bytes

Versions: 4

Compression:

Stored size: 336 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(mock)
    note.stub(:controller_filename).and_return(nil)

    note.should_not be_valid
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails-footnotes-3.7.9 spec/notes/controller_note_spec.rb
rails-footnotes-3.7.8 spec/notes/controller_note_spec.rb
rails-footnotes-3.7.7 spec/notes/controller_note_spec.rb
rails-footnotes-3.7.6 spec/notes/controller_note_spec.rb