Modified: MacRuby/branches/experimental/mspec/lib/mspec/runner/mspec.rb (1053 => 1054)
--- MacRuby/branches/experimental/mspec/lib/mspec/runner/mspec.rb 2009-03-22 01:02:44 UTC (rev 1053)
+++ MacRuby/branches/experimental/mspec/lib/mspec/runner/mspec.rb 2009-03-22 01:17:49 UTC (rev 1054)
@@ -265,13 +265,20 @@
tags = []
file = tags_file
if File.exist? file
- File.open(file, "r") do |f|
- f.each_line do |line|
- line.chomp!
- next if line.empty?
- tag = SpecTag.new line.chomp
- tags << tag if keys.include? tag.tag
- end
+ # TODO: roxor workaround, or should mspec just use File.read anyways?
+ # File.open(file, "r") do |f|
+ # f.each_line do |line|
+ # line.chomp!
+ # next if line.empty?
+ # tag = SpecTag.new line.chomp
+ # tags << tag if keys.include? tag.tag
+ # end
+ # end
+ File.read(file).each_line do |line|
+ line.chomp!
+ next if line.empty?
+ tag = SpecTag.new line.chomp
+ tags << tag if keys.include? tag.tag
end
end
tags
Modified: MacRuby/branches/experimental/rakelib/spec.rake (1053 => 1054)
--- MacRuby/branches/experimental/rakelib/spec.rake 2009-03-22 01:02:44 UTC (rev 1053)
+++ MacRuby/branches/experimental/rakelib/spec.rake 2009-03-22 01:17:49 UTC (rev 1054)
@@ -13,7 +13,7 @@
desc "Run language examples"
task :language do
- sh "./mspec/bin/mspec ci -B ./spec/frozen/macruby.mspec ./spec/frozen/language"
+ sh "./mspec/bin/mspec ci -B ./spec/frozen/macruby.mspec spec/frozen/language/*_spec.rb"
end
namespace :workaround do