spec/program_spec.rb in mercenary-0.2.1 vs spec/program_spec.rb in mercenary-0.3.0
- old
+ new
@@ -1,18 +1,37 @@
\ No newline at end of file
+require "spec_helper"
+
+describe(Mercenary::Program) do
+
+ context "a basic program" do
+ let(:program) { Mercenary::Program.new(:my_name) }
+
+ it "can be created with just a name" do
+ expect(program.name).to eql(:my_name)
+ end
+
+ it "can set its version" do
+ version = Mercenary::VERSION
+ program.version version
+ expect(program.version).to eq(version)
+ end
+ end
+
+end