Sha256: cd0382844949eb79d29528e97a863696d4cf27576b2eeb31b0a1ee32eaee3198

Contents?: true

Size: 905 Bytes

Versions: 6

Compression:

Stored size: 905 Bytes

Contents

require 'spec_helper'

module Appstats
  describe Entry do

    describe "#initialize" do

      before(:each) do
        @entry = Appstats::Entry.new
      end
    
      it "should set entry_type to nil" do
        @entry.entry_type.should == nil
      end

      it "should set name to nil" do
        @entry.name.should == nil
      end
    
      it "should set description to nil" do
        @entry.description.should == nil
      end
    
      it "should set on constructor" do
        entry = Appstats::Entry.new(:entry_type => 'a', :name => 'b', :description => 'c')
        entry.entry_type.should == 'a'
        entry.name.should == 'b'

      end
    
    end

    describe "#to_s" do
    
      before(:each) do
        @entry = Appstats::Entry.new
      end
    
      it "should run the test" do
        @entry.to_s.should == 'Entry [type],[name],[description]'
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
appstats-0.0.13 spec/entry_spec.rb
appstats-0.0.12 spec/entry_spec.rb
appstats-0.0.11 spec/entry_spec.rb
appstats-0.0.10 spec/entry_spec.rb
appstats-0.0.9 spec/entry_spec.rb
appstats-0.0.8 spec/entry_spec.rb