From 4f4113222ee95ef49f51d1bb01b00ccdfe9d4b14 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Thu, 9 Apr 2015 13:23:43 +0300 Subject: [PATCH] Add white spaces between rspec examples --- spec/location_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/location_spec.rb b/spec/location_spec.rb index 982b420..6b7aa98 100644 --- a/spec/location_spec.rb +++ b/spec/location_spec.rb @@ -4,37 +4,44 @@ describe "libv8 locations" do before do @context = double(:CompilationContext) end + describe "the system location" do before do @location = Libv8::Location::System.new @context.stub(:dir_config) end + describe "configuring a compliation context with it" do before do @context.stub(:find_header) {true} @context.stub(:have_library) {true} @location.configure @context end + it "adds the include path to the front of the include flags" do @context.should have_received(:dir_config).with('v8').at_least(:once) @context.should have_received(:find_header).with('v8.h').at_least(:once) @context.should have_received(:have_library).with('v8').at_least(:once) end end + describe "when the v8 library cannot be found" do before do @context.stub(:find_header) {true} @context.stub(:have_library) {false} end + it "raises a NotFoundError" do expect {@location.configure @context}.to raise_error Libv8::Location::System::NotFoundError end end + describe "when the v8.h header cannot be found" do before do @context.stub(:find_header) {false} @context.stub(:have_library) {true} end + it "raises a NotFoundError" do expect {@location.configure @context}.to raise_error Libv8::Location::System::NotFoundError end