Sha256: c9f9d0b90024e181dcfa8464e5d12095043a7032428ee3e703ebf6ac5bd10022

Contents?: true

Size: 440 Bytes

Versions: 2

Compression:

Stored size: 440 Bytes

Contents

require 'test_helper'

module Mayl
  describe Env do
    before do
      @locales = [stub, stub]
      Loader.expects(:load).with('my/path').returns @locales
      @env = Mayl::Env.new('my/path')
    end

    it 'is a container for locales' do
      @env.locales.must_equal @locales
    end

    it 'commits changes to disk' do
      @locales.each do |locale|
        locale.expects(:commit)
      end

      @env.commit
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mayl-0.1.0 test/mayl/env_test.rb
mayl-0.0.1 test/mayl/env_test.rb