Permalink
Browse files

disable drb spec when offline

  • Loading branch information...
dchelimsky committed Aug 1, 2011
1 parent e5d98ca commit 38f312f22c8fe3369d5386c65d4840ee820f69cd
Showing with 9 additions and 9 deletions.
  1. +1 −1 spec/rspec/core/drb_command_line_spec.rb
  2. +8 −8 spec/support/spec_files.rb
@@ -1,6 +1,6 @@
require "spec_helper"
-describe "::DRbCommandLine", :ruby => "!jruby" do
+describe "::DRbCommandLine", :type => :drb, :unless => RUBY_PLATFORM == 'java' do
let(:config) { RSpec::Core::Configuration.new }
let(:out) { StringIO.new }
let(:err) { StringIO.new }
View
@@ -10,23 +10,23 @@ def passing_spec_filename
def create_passing_spec_file
File.open(passing_spec_filename, 'w') do |f|
f.write %q{
- describe "passing spec" do
- it "passes" do
- 1.should eq(1)
- end
+ describe "passing spec" do
+ it "passes" do
+ 1.should eq(1)
end
+ end
}
end
end
def create_failing_spec_file
File.open(failing_spec_filename, 'w') do |f|
f.write %q{
- describe "failing spec" do
- it "fails" do
- 1.should eq(2)
- end
+ describe "failing spec" do
+ it "fails" do
+ 1.should eq(2)
end
+ end
}
end
end

0 comments on commit 38f312f

Please sign in to comment.