Sha256: 84d2c650d4d9d86f0b44a7e0c77d338604d471108b81fafec491852de570e6b5

Contents?: true

Size: 517 Bytes

Versions: 16

Compression:

Stored size: 517 Bytes

Contents

require 'spec_helper'

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

  it "can be saved successfully" do
    Note.create.should be_persisted
  end
  
  it "can add note" do
    note = Note.create
    note.content = "test"
    note.save
    note.content.should == "test"
  end
  
  it "should have summmary" do
    note = Note.create
    note.content = "This is going to be summarized"
    note.save
    note.summary.should == "This is going to be s..."
  end
  
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
erp_base_erp_svcs-4.2.0 spec/models/note_spec.rb
erp_base_erp_svcs-4.0.0 spec/models/note_spec.rb
erp_base_erp_svcs-3.1.5 spec/models/note_spec.rb
erp_base_erp_svcs-3.1.4 spec/models/note_spec.rb
erp_base_erp_svcs-3.1.3 spec/models/note_spec.rb
erp_base_erp_svcs-3.1.2 spec/models/note_spec.rb
erp_base_erp_svcs-3.1.1 spec/models/note_spec.rb
erp_base_erp_svcs-3.0.7 spec/models/note_spec.rb
erp_base_erp_svcs-3.1.0 spec/models/note_spec.rb
erp_base_erp_svcs-3.0.6 spec/models/note_spec.rb
erp_base_erp_svcs-3.0.5 spec/models/note_spec.rb
erp_base_erp_svcs-3.0.4 spec/models/note_spec.rb
erp_base_erp_svcs-3.0.3 spec/models/note_spec.rb
erp_base_erp_svcs-3.0.2 spec/models/note_spec.rb
erp_base_erp_svcs-3.0.1 spec/models/note_spec.rb
erp_base_erp_svcs-3.0.0 spec/models/note_spec.rb