Sha256: d43c9cb9043e0ef0ff822440435ccc892f4c3a5ec1ce7ca77cf9e95f604f4605
Contents?: true
Size: 747 Bytes
Versions: 1
Compression:
Stored size: 747 Bytes
Contents
require "spec_helper" describe "Dearchiver::Processor" do it "should create an instance of Dearchiver via .new" do Dearchiver.respond_to?(:new).should == true Dearchiver.new(:filename => 'foo.zip').should be_a Dearchiver::Processor end it "should create an instance if all the argmuments are correct" do Dearchiver.new(:filename => 'foo.bar', :archive_type => ".zip").should be_a Dearchiver::Processor end it "should raise an error if no filename is passed as an argument" do expect { Dearchiver.new }.to raise_error(ArgumentError) end it "should raise an error if a file type is not recognized and type not passed" do expect { Dearchiver.new(:filename => "foo.bar") }.to raise_error(ArgumentError) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dearchiver-0.0.1 | spec/dearchiver_spec.rb |