test/jeweler/commands/test_write_gemspec.rb in dima-jeweler-0.9.2 vs test/jeweler/commands/test_write_gemspec.rb in dima-jeweler-1.2.0

- old
+ new

@@ -51,8 +51,42 @@ assert_equal @output.string, "Generated: tmp/zomg.gemspec" end end + build_command_context "building for jeweler" do + setup do + @command = Jeweler::Commands::WriteGemspec.build_for(@jeweler) + end + + should "assign base_dir" do + assert_same @base_dir, @command.base_dir + end + + should "assign gemspec" do + assert_same @gemspec, @command.gemspec + end + + should "assign version" do + assert_same @version, @command.version + end + + should "assign output" do + assert_same @output, @command.output + end + + should "assign gemspec_helper" do + assert_same @gemspec_helper, @command.gemspec_helper + end + + should "assign version_helper" do + assert_same @version_helper, @command.version_helper + end + + should "return WriteGemspec" do + assert_kind_of Jeweler::Commands::WriteGemspec, @command + end + end + end end end