spec/lib/hackpad/cli/pad_spec.rb in hackpad-cli-0.0.6 vs spec/lib/hackpad/cli/pad_spec.rb in hackpad-cli-0.0.7

- old
+ new

@@ -8,21 +8,21 @@ describe Hackpad::Cli::Pad do before :each do Hackpad::Cli::Api.stub(:read).with('123', 'txt').and_return("content\nand body") - Hackpad::Cli::Api.stub(:read_options).with('123').and_return({"success" => "true"}) + Hackpad::Cli::Api.stub(:read_options).with('123').and_return({"success" => "true", "options" => {}}) options = { - "configdir" => File.expand_path('../../../files', __FILE__), - "workspace" => 'default' + configdir: File.expand_path('../../../../files', __FILE__), + workspace: 'default' } Hackpad::Cli::Store.prepare options @pad = Hackpad::Cli::Pad.new "123" @pad.load 'txt' end after :each do - FileUtils.rm_rf File.expand_path('../../../files/default', __FILE__) + FileUtils.rm_rf File.expand_path('../../../../files/default', __FILE__) end it "creates a new pad object" do expect(@pad.id).to eq "123" end