Skip to content

Commit

Permalink
Remove RSpec dependency from packaged JRuby
Browse files Browse the repository at this point in the history
I suppose nobody runs these 2 tests and so there is no need
to package RSpec for the sake of unused code
  • Loading branch information
p0deje committed Nov 17, 2017
1 parent bcae008 commit 6f86d7e
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions rake-tasks/crazy_fun.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,29 +74,3 @@ def create_tasks(files)
end
end
end

if __FILE__ == $0
require "rubygems"
require "spec/autorun"

describe CrazyFun do
let(:fun) { CrazyFun.new }

it "finds prebuilts with normal paths" do
fun.prebuilt_roots << "firefox/prebuilt"
expected_result = "firefox/prebuilt/i386/libnoblur.so"
File.should_receive(:exists?).with(expected_result).and_return(true)

fun.find_prebuilt("build/firefox/i386/libnoblur.so").should == expected_result
end

it "finds prebuilts with windows paths" do
fun.prebuilt_roots << "firefox/prebuilt"
expected_result = "firefox/prebuilt/i386/libnoblur.so"
File.should_receive(:exists?).with(expected_result).and_return(true)

fun.find_prebuilt("build\\firefox\\i386\\libnoblur.so").should == expected_result
end
end

end

0 comments on commit 6f86d7e

Please sign in to comment.