spec/transender_spec.rb in mihael-transender-0.2.4 vs spec/transender_spec.rb in mihael-transender-0.2.5
- old
+ new
@@ -1,7 +1,8 @@
require File.join(File.dirname(__FILE__), %w[spec_helper])
include Transender
+RSPEC=:yes
describe Transender do
it "should not be instantiated without cool arguments" do
lambda { Ji.new( ) }.should raise_error
@@ -25,11 +26,10 @@
ji.clone_and_remove_git
ji.rename
puts File.exists?(File.join(ji.app_path)).should be(true)
end
-
it "should transform and zip" do
proc do
Ji.transform_and_zip({:app_title=>"xyzproject", :transform=>File.join(File.dirname(__FILE__), %w[.. iproject]), :ji_path => File.join(File.dirname(__FILE__), %w[.. tmp]) }) do |zip|
zip.should == File.join(File.dirname(__FILE__), %w[.. tmp xyzproject.zip])
File.exists?(zip).should == true
@@ -41,9 +41,15 @@
proc do
Ji.transform_and_zip({:app_title=>"freshproject", :transform=>" git://github.com/mihael/iproject.git", :ji_path => File.join(File.dirname(__FILE__), %w[.. tmp]) }) do |zip|
zip.should == File.join(File.dirname(__FILE__), %w[.. tmp freshproject.zip])
File.exists?(zip).should == true
end
+ end.should_not raise_error
+ end
+
+ it "should transform and transend" do
+ proc do
+ Ji.transend({:app_title=>"aproject", :transform=>File.join(File.dirname(__FILE__), %w[.. iproject]), :ji_path => File.join(File.dirname(__FILE__), %w[.. tmp aproject]) })
end.should_not raise_error
end
end