Sha256: dd08fb7afc092b66328cc573c6648543eff646beaec14caa9fa78d2ef104d541
Contents?: true
Size: 297 Bytes
Versions: 2
Compression:
Stored size: 297 Bytes
Contents
require "spec_helper" describe Permalink::Orm::Mongoid do let(:model) { Article } it_should_behave_like "orm" it "should override to_param method" do model.permalink :title record = model.create(:title => "Some nice post") record.to_param.should == "some-nice-post" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
permalink-1.2.1 | spec/permalink/mongoid_spec.rb |
permalink-1.2.0 | spec/permalink/mongoid_spec.rb |