Sha256: 57a0790a5fc944b695ee1ba372a8f66488a5055422ef59e63661ee91597b6c8f

Contents?: true

Size: 364 Bytes

Versions: 7

Compression:

Stored size: 364 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe Page do
  before(:each) do
    @page = Page.create(
    :title => 'test page',
    :slug => 'test-page',
    :body => 'this is a test page'
    )
  end

  it "should be valid" do
    @page.should be_valid
  end
  
  it "should add an / to the slug" do
    @page.slug.should == "/test-page"
  end
  
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spree_static_content-0.60.1 spec/models/page_spec.rb
spree_static_content-0.60.0 spec/models/page_spec.rb
spree_static_content-0.40.2 spec/models/page_spec.rb
spree_static_content-0.40.1 spec/models/page_spec.rb
spree_static_content-0.40.0 spec/models/page_spec.rb
spree_static_content-0.30.0 spec/models/page_spec.rb
spree_static_content-0.30.0.beta1 spec/models/page_spec.rb