Permalink
Browse files

Add an integration spec which builds a simple app that uses RestKit.

  • Loading branch information...
1 parent 611379c commit 110869ca7c58969dbc080e99b98a2d53b0fcbe48 @alloy alloy committed May 11, 2012
Showing with 18 additions and 2 deletions.
  1. +2 −1 Rakefile
  2. +1 −1 spec/fixtures/RestKitTest
  3. +15 −0 spec/integration_spec.rb
View
@@ -15,8 +15,9 @@ task :bootstrap do
sh "bundle install"
end
-desc "Run the specs"
+desc "Run all the specs"
task :spec do
+ #sh "env COCOAPODS_VERBOSE=1 bundle exec bacon #{FileList['spec/*_spec.rb'].join(' ')}"
sh "bundle exec bacon #{FileList['spec/*_spec.rb'].join(' ')}"
end
View
@@ -0,0 +1,15 @@
+require File.expand_path('../spec_helper', __FILE__)
+
+describe "CocoaPods integration" do
+ extend SpecHelper::TemporaryDirectory
+
+ before do
+ @project_dir = ROOT + 'spec/fixtures/RestKitTest'
+ FileUtils.rm_rf @project_dir + 'build'
+ FileUtils.rm_rf @project_dir + 'vendor'
+ end
+
+ it "successfully builds an application" do
+ system("cd '#{@project_dir}' && rake build:simulator").should == true
+ end
+end

0 comments on commit 110869c

Please sign in to comment.