Sha256: 11bf524b99d7509355d04ac23238ff49eecfef0917b4d52f3288f413c4abb0cf
Contents?: true
Size: 627 Bytes
Versions: 3
Compression:
Stored size: 627 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe CommandButler::CommandObject do before do @original_command = "hello REPLACE_STRING" end subject (:command) do command = CommandButler::CommandObject.new({"command"=> @original_command}) command.replace_command(val:{"REPLACE_STRING"=>"world"}) command end it "replaced? changed" do is_expected.to be_replaced end it "command string changed" do expect(command.command).to eq("hello world") end it "original command is no change" do expect(command.original_command).to eq(@original_command) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
command_butler-0.0.3 | spec/command_object_spec.rb |
command_butler-0.0.2 | spec/command_object_spec.rb |
command_butler-0.0.1 | spec/command_object_spec.rb |