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