Sha256: dfaaa3467e141dc91838373b17de990120a06d0fd7ee8aa77abd13a4a770bfd9
Contents?: true
Size: 866 Bytes
Versions: 4
Compression:
Stored size: 866 Bytes
Contents
require 'spec_helper' describe AppstatsEntry do describe "#initialize" do before(:each) do @entry = AppstatsEntry.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 = AppstatsEntry.new(:entry_type => 'a', :name => 'b', :description => 'c') entry.entry_type.should == 'a' entry.name.should == 'b' entry.description.should == 'c' end end describe "#to_s" do before(:each) do @entry = AppstatsEntry.new end it "should run the test" do @entry.to_s.should == 'Entry [type],[name],[description]' end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
appstats-0.0.7 | spec/appstats_entry_spec.rb |
appstats-0.0.6 | spec/appstats_entry_spec.rb |
appstats-0.0.5 | spec/appstats_entry_spec.rb |
appstats-0.0.4 | spec/appstats_entry_spec.rb |