lib/juxtapose/application/spec/models/spec_spec.rb in motion-juxtapose-0.1.0 vs lib/juxtapose/application/spec/models/spec_spec.rb in motion-juxtapose-0.1.1

- old
+ new

@@ -21,9 +21,20 @@ "#{spec_dir}/accepted.png", "#{spec_dir}/current-1232422.png" ] end + it "only uses the file name to determine accepted/current/diff status" do + spec_dir ="#{@specs_dir}/ios7.0/currently_logged_in_user" + FileUtils.mkdir_p(spec_dir) + + FileUtils.touch("#{spec_dir}/accepted.png") + + spec = Spec.new @specs_dir, spec_dir + expect(spec.current).to be_nil + expect(spec.accepted.img).to eq("#{spec_dir}/accepted.png") + end + it "serializes to JSON" do spec_dir ="#{@specs_dir}/ios7.0/user_views_home_screen" FileUtils.mkdir_p(spec_dir) FileUtils.touch("#{spec_dir}/accepted.png")