Skip to content

Commit

Permalink
Repaired tests for build
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonpgignac committed Jun 24, 2011
1 parent fdb84e5 commit 6ccf27b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
25 changes: 13 additions & 12 deletions Gemfile.lock
@@ -1,3 +1,15 @@
GIT
remote: git://github.com/sproutcore/spade-ruby
revision: 73ba88cf692505a4bbbdae51d4a994319a70c27e
specs:
spade (0.1.0.1)
childlabor (~> 0.0.3)
eventmachine (~> 0.12.10)
json_pure (~> 1.4.6)
rack (~> 1.2.1)
therubyracer (~> 0.9.0)
thor (~> 0.14.3)

PATH
remote: .
specs:
Expand All @@ -9,17 +21,6 @@ PATH
spade
thor (~> 0.14.3)

PATH
remote: ~/Programming/Spade/spade-ruby
specs:
spade (0.1.0.1)
childlabor (~> 0.0.3)
eventmachine (~> 0.12.10)
json_pure (~> 1.4.6)
rack (~> 1.2.1)
therubyracer (~> 0.9.0)
thor (~> 0.14.3)

GEM
remote: http://rubygems.org/
specs:
Expand All @@ -40,7 +41,7 @@ GEM
rspec-expectations (2.6.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.6.0)
therubyracer (0.9.1)
therubyracer (0.9.2)
libv8 (~> 3.3.10)
thor (0.14.6)

Expand Down
12 changes: 6 additions & 6 deletions spec/cli/build_spec.rb
Expand Up @@ -32,29 +32,29 @@

it "builds a bpm from a given package.json" do
FileUtils.cp_r fixtures("core-test"), "."
FileUtils.cp fixtures("package.json"), "core-test"
#FileUtils.cp fixtures("package.json"), "core-test"
cd "core-test"
bpm "build"

exit_status.should be_success
output = stdout.read

package = LibGems::Format.from_file_by_path("core-test-0.4.3.spd")
package = LibGems::Format.from_file_by_path("core-test-0.4.9.spd")
package.spec.name.should == "core-test"
package.spec.version.should == LibGems::Version.new("0.4.3")
package.spec.version.should == LibGems::Version.new("0.4.9")
end
it "sets the email address if one is given" do
FileUtils.cp_r fixtures("core-test"), "."
FileUtils.cp fixtures("package.json"), "core-test"
#FileUtils.cp fixtures("package.json"), "core-test"
cd "core-test"
bpm "build", "-e", "lucy@allen.com"

exit_status.should be_success
output = stdout.read

package = LibGems::Format.from_file_by_path("core-test-0.4.3.spd")
package = LibGems::Format.from_file_by_path("core-test-0.4.9.spd")
package.spec.name.should == "core-test"
package.spec.version.should == LibGems::Version.new("0.4.3")
package.spec.version.should == LibGems::Version.new("0.4.9")
package.spec.email.should == "lucy@allen.com"
end
end
Expand Down

0 comments on commit 6ccf27b

Please sign in to comment.