Sha256: 6073a57243f4a4b1dd873f6879e5ef2b8de3347be1c6457a32703c1dbcaf37cb
Contents?: true
Size: 617 Bytes
Versions: 1
Compression:
Stored size: 617 Bytes
Contents
require 'spec_helper' describe PostDecorator do subject { PostDecorator.new(source) } let(:source) { Post.create } it "can use path helpers with its model" do subject.path_with_model.should == "/en/posts/#{source.id}" end it "can use path helpers with its id" do subject.path_with_id.should == "/en/posts/#{source.id}" end it "can use url helpers with its model" do subject.url_with_model.should == "http://www.example.com/en/posts/#{source.id}" end it "can use url helpers with its id" do subject.url_with_id.should == "http://www.example.com/en/posts/#{source.id}" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
draper-1.0.0.beta1 | spec/dummy/spec/decorators/post_decorator_spec.rb |