require 'spec_helper' require_dependency 'plugin' describe Plugin do context "parse" do it "correctly parses plugin info" do plugin = Plugin.parse < 'https://zappa.com'} auth_provider.type.should == :open_id # calls ensure_assets! make sure they are there plugin.assets.count.should == 2 plugin.assets.each do |a| File.exists?(a).should be_true end # ensure it cleans up all crap in autogenerated directory File.exists?(junk_file).should be_false end end end