Sha256: 76e972877f3835e4ccfa7522005df84ea8ba5605e32c849336d260b331503fd7

Contents?: true

Size: 339 Bytes

Versions: 10

Compression:

Stored size: 339 Bytes

Contents

require "spec_helper"

module Commenteux
  describe NotesHelper do
    describe "Comportement de la méthode user_lookup" do
      it "doit charger le user en paramètre" do

        user = mock_model(User, {:name => 'blah'})
        ::User.should_receive(:find).with(1).and_return(user)
        user_lookup(1)

      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
commenteux-1.1.2 spec/helpers/commenteux/notes_helper_spec.rb
commenteux-1.1.1 spec/helpers/commenteux/notes_helper_spec.rb
commenteux-1.1.0 spec/helpers/commenteux/notes_helper_spec.rb
commenteux-1.0.6 spec/helpers/commenteux/notes_helper_spec.rb
commenteux-1.0.5 spec/helpers/commenteux/notes_helper_spec.rb
commenteux-1.0.4 spec/helpers/commenteux/notes_helper_spec.rb
commenteux-1.0.3 spec/helpers/commenteux/notes_helper_spec.rb
commenteux-1.0.2 spec/helpers/commenteux/notes_helper_spec.rb
commenteux-1.0.1 spec/helpers/commenteux/notes_helper_spec.rb
commenteux-1.0.0 spec/helpers/commenteux/notes_helper_spec.rb