spec/ise/project_spec.rb in ruby-ise-0.4.0 vs spec/ise/project_spec.rb in ruby-ise-0.6.1

- old
+ new

@@ -2,11 +2,11 @@ require 'ise' describe ISE::Project do #Operate on the same file provided. - subject { ISE::Project.load(File.expand_path('../project.xise', __FILE__)) } + subject { ISE::Project.load(File.expand_path('../test_data/project.xise', __FILE__)) } describe ".get_property" do it "should return the value of the provided project property " do @@ -20,11 +20,11 @@ # Faculty for finding the top-level file. # describe ".top_level_file" do let(:relative_path) { './toplevel.vhd' } - let(:full_path) { File.expand_path(relative_path, "#{__FILE__}/..") } + let(:full_path) { File.expand_path(relative_path, "#{__FILE__}/../test_data") } context "when absolute_path is false" do it "should return a relative path to top-level file, as it appears in the project file" do subject.top_level_file(false).should == relative_path end @@ -41,10 +41,10 @@ # # Faculty for finding the most recent bit-file generated by a project. # describe ".bit_file" do - let(:full_path) { File.expand_path('toplevel.bit', "#{__FILE__}/..") } + let(:full_path) { File.expand_path('toplevel.bit', "#{__FILE__}/../test_data") } it "should return the absolute path to the top-level bit file, if it exists" do subject.bit_file.should == full_path end