Sha256: bd359f89369d96bb62d7737fc3a31b5c326a88377934a56461cff64968d98818
Contents?: true
Size: 1.65 KB
Versions: 1
Compression:
Stored size: 1.65 KB
Contents
require File.dirname(__FILE__) + '/spec_helper' describe "PirateShip" do describe "#walk_the_plank" do before(:each) do @csv_pirate = Star.walk_the_plank end it "should return a string" do @csv_pirate.class.should == String end end describe "#blindfold" do before(:each) do @csv_pirate = Star.blindfold end it "should return an instance of CsvPirate" do @csv_pirate.class.should == CsvPirate end end describe "#land_ho" do before(:each) do @csv_pirate = Star.land_ho end it "should return an instance of CsvPirate" do @csv_pirate.class.should == CsvPirate end end describe "#land_ho" do before(:each) do @csv_pirate = Star.land_ho end it "should return an instance of CsvPirate" do @csv_pirate.class.should == CsvPirate end end describe "#weigh_anchor" do before(:each) do @csv_pirate = Star.weigh_anchor({:chronometer => Date.parse("2/1/2007")}) end it "should return an instance of CsvPirate" do @csv_pirate.class.should == CsvPirate @csv_pirate.chart.should == ["spec","csv","Star","dumps"] end end describe "#raise_anchor" do before(:each) do @csv_pirate = Star.weigh_anchor({:chronometer => Date.parse("3/29/2002")}) @csv_pirate = Star.weigh_anchor({:chronometer => Date.parse("6/14/2004")}) @csv_pirate = Star.weigh_anchor({:chronometer => Date.parse("12/25/1962")}) @csv_pirate = Star.raise_anchor() end it "should return an array of 10 grubs built from data in CSV" do @csv_pirate.class.should == Array @csv_pirate.length.should == 10 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
csv_pirate-4.0.1 | spec/pirate_ship_spec.rb |