Sha256: fc48ff64a2d26a7c0a7e03e461cc311fe02604bf1703d195c093d4c951494dfc

Contents?: true

Size: 344 Bytes

Versions: 28

Compression:

Stored size: 344 Bytes

Contents

require 'spec_helper'

describe Blog do
  it "can be instantiated" do
    Blog.new.should be_an_instance_of(Blog)
  end

  it "can be saved successfully" do
    Blog.create(:title => "Some Title").should be_persisted
  end
  
  it "can find_blog_post" do
    blog = Blog.create(:title => "some title")
    blog.find_blog_post('test')
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
knitkit-3.2.0 spec/models/blog_spec.rb
knitkit-3.0.0 spec/models/blog_spec.rb
knitkit-2.1.15 spec/models/blog_spec.rb
knitkit-2.1.14 spec/models/blog_spec.rb
knitkit-2.1.13 spec/models/blog_spec.rb
knitkit-2.1.12 spec/models/blog_spec.rb
knitkit-2.1.11 spec/models/blog_spec.rb
knitkit-2.1.10 spec/models/blog_spec.rb
knitkit-2.1.9 spec/models/blog_spec.rb
knitkit-2.1.8 spec/models/blog_spec.rb
knitkit-2.1.7 spec/models/blog_spec.rb
knitkit-2.1.6 spec/models/blog_spec.rb
knitkit-2.1.5 spec/models/blog_spec.rb
knitkit-2.1.4 spec/models/blog_spec.rb
knitkit-2.1.3 spec/models/blog_spec.rb
knitkit-2.1.2 spec/models/blog_spec.rb
knitkit-2.1.1 spec/models/blog_spec.rb
knitkit-2.1.0 spec/models/blog_spec.rb
knitkit-2.0.11 spec/models/blog_spec.rb
knitkit-2.0.10 spec/models/blog_spec.rb