Permalink
Browse files

Add gem publishing to jenkins and fix test

Test only fails on jenkins
  • Loading branch information...
1 parent 7ccb28f commit 09cd0fb6236932207eb89b47a682fc738dc8a28e @robyoung robyoung committed Aug 24, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −0 jenkins.sh
  2. +2 −1 spec/google_auth_bridge_spec.rb
View
@@ -3,3 +3,4 @@ set -e
bundle install --path "${HOME}/bundles/${JOB_NAME}"
bundle exec rake ci:setup:rspec spec --trace
+bundle exec rake publish_gem
@@ -6,6 +6,7 @@
@filename = "/tmp/test.token"
@auth = GoogleAuthenticationBridge::GoogleAuthentication.new(nil, nil, nil, @filename)
@yaml_content = "---\n:refresh_token: foo bar\n"
+ @yaml_pattern = /---\s?\n:refresh_token: foo bar\n/
end
after(:each) do
@@ -16,7 +17,7 @@
File.exists?(@filename).should be_false
@auth.save_token_to_file("foo bar")
File.exists?(@filename).should be_true
- File.read(@filename).should == @yaml_content
+ File.read(@filename).should match(@yaml_pattern)
end
it "should raise an InvalidTokenError exception if the refresh token is nil" do

0 comments on commit 09cd0fb

Please sign in to comment.