Sha256: 51e4590456290976d7ed2dc0f2c54313d096120389ca30b4acd68d583c8a1d06

Contents?: true

Size: 858 Bytes

Versions: 36

Compression:

Stored size: 858 Bytes

Contents

# -*- Encoding: utf-8 -*-
#
# Copyright 2013 whiteleaf. All rights reserved.
#

require_relative "../lib/device"

if Helper.os_windows?
  describe "Windowsの場合" do
    describe Device::Library::Windows do
      it "Windows7_OSなボリュームネームのドライブは C:/" do
        module Dummy
          extend Device::Library::Windows
        end
        expect(Dummy.get_device_root_dir("Windows7_OS")).to eq("C:/")
      end
    end

    describe "Kindle" do
      before do
        @device = Device.create("kindle")
      end

      it "は存在するべき" do
        expect(Device.exists?("kindle")).to be_truthy
      end
    end

    describe "Kobo" do
      before do
        @device = Device.create("kobo")
      end

      it "は存在するべき" do
        expect(Device.exists?("kobo")).to be_truthy
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
narou-2.9.5 spec/device_spec.rb
narou-2.9.4 spec/device_spec.rb
narou-2.9.3.1 spec/device_spec.rb
narou-2.9.3 spec/device_spec.rb
narou-2.9.2 spec/device_spec.rb
narou-2.9.1 spec/device_spec.rb
narou-2.9.0 spec/device_spec.rb
narou-2.8.3.1 spec/device_spec.rb
narou-2.8.3 spec/device_spec.rb
narou-2.8.2 spec/device_spec.rb
narou-2.8.1 spec/device_spec.rb
narou-2.8.0 spec/device_spec.rb
narou-2.7.2 spec/device_spec.rb
narou-2.7.1 spec/device_spec.rb
narou-2.7.0 spec/device_spec.rb
narou-2.6.1 spec/device_spec.rb
narou-2.6.0 spec/device_spec.rb
narou-2.5.2 spec/device_spec.rb
narou-2.5.1 spec/device_spec.rb
narou-2.4.2 spec/device_spec.rb