Sha256: 303a6e966f965e3db390a2f451b374aad8f7710c0bb241e1b3aa241213840b4a
Contents?: true
Size: 911 Bytes
Versions: 5
Compression:
Stored size: 911 Bytes
Contents
require 'spec_helper' describe Cuesmash::IosApp do describe "when creating a new instance" do it "should have an app_dir instance" do stub_dir @iosapp = Cuesmash::IosApp.new(file_name: "MyApp") expect(@iosapp.app_dir).to match("/tmp/Release-iphonesimulator/") end it "should have an app_path instance" do stub_dir @iosapp = Cuesmash::IosApp.new(file_name: "MyApp") expect(@iosapp.app_path).to match("/tmp/Release-iphonesimulator/MyApp.app") end it "should have a tmp_dir instance" do stub_dir @iosapp = Cuesmash::IosApp.new(file_name: "MyApp") expect(@iosapp.tmp_dir).to match("/tmp") end it "should have an app_name instance" do @iosapp = Cuesmash::IosApp.new(file_name: "MyApp") expect(@iosapp.app_name).to match("MyApp.app") end def stub_dir Dir.stub(:mktmpdir) { "/tmp" } end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
cuesmash-0.1.7 | spec/iosapp_spec.rb |
cuesmash-0.1.6 | spec/iosapp_spec.rb |
cuesmash-0.1.5.1 | spec/iosapp_spec.rb |
cuesmash-0.1.5 | spec/iosapp_spec.rb |
cuesmash-0.1.4 | spec/iosapp_spec.rb |