Sha256: 4633f3ecbac73d386093667132fa02b83eae646c8c6d8603569fef96cc431966
Contents?: true
Size: 727 Bytes
Versions: 3
Compression:
Stored size: 727 Bytes
Contents
require 'spec_helper' require 'pessimize/declaration' module Pessimize describe Declaration do context "creating a 'source' declaration" do subject { Declaration.new 'source', 'https://rubygems.org' } its(:to_code) { should == 'source "https://rubygems.org"' } end context "creating a 'source' declaration with a symbol value" do subject { Declaration.new 'source', :rubygems } its(:to_code) { should == 'source :rubygems' } end context "creating a 'git' declaration" do subject { Declaration.new 'git', 'git://github.com/wycats/thor.git', :tag => "v0.13.4" } its(:to_code) { should == 'git "git://github.com/wycats/thor.git", {:tag=>"v0.13.4"}' } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pessimize-0.1.0 | spec/declaration_spec.rb |
pessimize-0.0.3 | spec/declaration_spec.rb |
pessimize-0.0.2 | spec/declaration_spec.rb |