test/configuration_checker_spec.rb in maven-helper-script-0.1.6 vs test/configuration_checker_spec.rb in maven-helper-script-0.2.0

- old
+ new

@@ -6,30 +6,30 @@ before(:each) do @checker = MavenHelperScript::ConfigurationChecker.new(File.join(File.dirname(__FILE__)), 'm.yml') end it "should find module by mapping" do - @checker.checkForModule("p").should == "parent" + expect(@checker.checkForModule("p")).to eq "parent" end it "should send back mapping name when no module found, assume that is the correct module name" do - @checker.checkForModule("boo").should == "boo" + expect(@checker.checkForModule("boo")).to eq "boo" end it "should find command using first characters when not a plugin execution" do - @checker.checkForCommand("ci").should == "clean install" + expect(@checker.checkForCommand("ci")).to eq "clean install" end it "should find plugin execution" do - @checker.checkForCommand("jr").should == "jetty:run" + expect(@checker.checkForCommand("jr")).to eq "jetty:run" end it "should blow up when can't find command" do expect {@checker.checkForCommand("j") }.to raise_error(MavenHelperScript::InvalidCommandException) end it "should return all command arguments" do args = Array['-ff', '-DskipTests'] - expect @checker.checkForArguments().should == args + expect(@checker.checkForArguments()).to eq args end end \ No newline at end of file