test/integration_test.rb in gem_publisher-0.0.3 vs test/integration_test.rb in gem_publisher-0.0.4

- old
+ new

@@ -12,15 +12,16 @@ with(command). returns([response, "", stub(exitstatus: 0)]) end def test_should_build_and_tag_and_publish + gemspec = data_file_path("example.gemspec") expect_cli "git ls-remote --tags origin", data_file("tags") - expect_cli "gem build example.gemspec", data_file("gem_build") - expect_cli "gem push test_gem-0.0.2.gem" + expect_cli "gem build #{gemspec}", data_file("gem_build") + expect_cli "gem push example-0.0.3.gem" expect_cli "git rev-parse HEAD", "1234abcd" - expect_cli "git update-ref refs/tags/v1.0.0 1234abcd" - expect_cli "git push origin tag v1.0.0" - GemPublisher.publish_if_updated "example.gemspec", "1.0.0" + expect_cli "git update-ref refs/tags/v0.0.3 1234abcd" + expect_cli "git push origin tag v0.0.3" + GemPublisher.publish_if_updated gemspec end end end