Sha256: 5d8b7a6ec9f2d32bbd32ebe4a6fda2953ee7af5458d4496a0c4f0e0523f723d5

Contents?: true

Size: 578 Bytes

Versions: 36

Compression:

Stored size: 578 Bytes

Contents

require 'pliny/commands/generator/serializer'
require 'spec_helper'

describe Pliny::Commands::Generator::Serializer do
  subject { described_class.new('artist', {}, StringIO.new) }

  around do |example|
    Dir.chdir(Dir.mktmpdir, &example)
  end

  describe '#create' do
    it 'creates a serializer file' do
      subject.create
      assert File.exist?('lib/serializers/artist.rb')
    end
  end

  describe '#create_test' do
    it 'creates a serializer test file' do
      subject.create_test
      assert File.exist?('spec/serializers/artist_spec.rb')
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
pliny-0.20.1 spec/commands/generator/serializer_spec.rb
pliny-0.20.0 spec/commands/generator/serializer_spec.rb
pliny-0.19.0 spec/commands/generator/serializer_spec.rb
pliny-0.18.0 spec/commands/generator/serializer_spec.rb
pliny-0.17.1 spec/commands/generator/serializer_spec.rb
pliny-0.17.0 spec/commands/generator/serializer_spec.rb
pliny-0.16.3 spec/commands/generator/serializer_spec.rb
pliny-0.16.2 spec/commands/generator/serializer_spec.rb
pliny-0.16.1 spec/commands/generator/serializer_spec.rb
pliny-0.16.0 spec/commands/generator/serializer_spec.rb
pliny-0.15.1 spec/commands/generator/serializer_spec.rb
pliny-0.15.0 spec/commands/generator/serializer_spec.rb
pliny-0.14.2 spec/commands/generator/serializer_spec.rb
pliny-0.14.1 spec/commands/generator/serializer_spec.rb
pliny-0.14.0 spec/commands/generator/serializer_spec.rb
pliny-0.13.1 spec/commands/generator/serializer_spec.rb