Sha256: c711b56cb60bc3e6b81752c2f02f0006aac401ba8e823cdf677f411114d718c2

Contents?: true

Size: 472 Bytes

Versions: 7

Compression:

Stored size: 472 Bytes

Contents

require 'spec_helper'
require 'action_controller'
require "rails-footnotes/notes/files_note"

class ConcreteFilesNote < Footnotes::Notes::FilesNote
  def scan_text(text)
    []
  end
end

describe Footnotes::Notes::FilesNote do

  let(:note) do
    ConcreteFilesNote.new(double('controller', :response => double('', :body => '')))
  end

  subject { note }

  it { should be_valid }

  describe '#row' do
    subject { super().row }
    it { should eql :edit }
  end

end

Version data entries

7 entries across 7 versions & 2 rubygems

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