Sha256: d6c5811d69aa6cf537121e5ceb087abe551788ba7e2de447c868f0e67de77d42
Contents?: true
Size: 652 Bytes
Versions: 3
Compression:
Stored size: 652 Bytes
Contents
require "helper" describe Gasoline::Jerrycan do before do Gasoline::Jerrycan.any_instance.stubs(:save).returns(true) Gasoline::Jerrycan.any_instance.stubs(:bootstrap).returns(true) yaml = File.join(File.dirname(__FILE__), "example_drops.yml") Gasoline::Jerrycan.any_instance.stubs(:yaml_file).returns(yaml) end describe "loading drops" do before do @jerry = Gasoline::Jerrycan.new end it "should load drops from config file on init" do assert_equal 1, @jerry.drops.count end it "should load name for drops from config" do assert_equal "Sounds", @jerry.drops.first.name end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gasoline-0.0.3 | test/jerrycan_test.rb |
gasoline-0.0.2 | test/jerrycan_test.rb |
gasoline-0.0.1 | test/jerrycan_test.rb |