public
Description: RSpec-syntax compatible framework for RubySpecs
Homepage: http://rubyspec.org
Clone URL: git://github.com/brixen/mspec.git
Search Repo:
Add a rakefile to run the specs with RSpec

- also fix specs broken on previous commit
nicksieger (author)
Wed May 14 10:46:25 -0700 2008
commit  2b826cb358033814d8e7e13f02a23b3b902c782b
tree    f70453d5b720996143f0313ba7ab52dcdb4f0044
parent  9e866164e0304a88aa4e592b04ec3178c12fc203
...
209
210
211
212
 
213
214
215
216
217
218
 
 
 
 
 
219
220
221
...
209
210
211
 
212
213
214
215
216
217
 
218
219
220
221
222
223
224
225
0
@@ -209,13 +209,17 @@
0
   end
0
 
0
   it "uses exec to invoke the runner script" do
0
- @script.should_receive(:exec).with("ruby", "mspec/bin/mspec-run")
0
+ @script.should_receive(:exec).with("ruby", %r"mspec/bin/mspec-run$")
0
     @script.options
0
     @script.run
0
   end
0
 
0
   it "calls #multi_exec if the command is 'ci' and the multi option is passed" do
0
- @script.should_receive(:multi_exec).with(["mspec/bin/mspec-ci", "-fy"])
0
+ @script.should_receive(:multi_exec).and_return do |arg|
0
+ arg.length.should == 2
0
+ arg.first.should =~ %r"mspec/bin/mspec-ci$"
0
+ arg.last.should == "-fy"
0
+ end
0
     @script.options ["ci", "-j"]
0
     @script.run
0
   end

Comments

    No one has commented yet.