Sha256: 973397d832f2fd447c8ad7680e4dd90537d9b9501d706d6f22c6b3f79113b937

Contents?: true

Size: 506 Bytes

Versions: 2

Compression:

Stored size: 506 Bytes

Contents

require 'spec_helper'

require 'grape/generators/transformations/entity_generator'

describe Grape::Generators::Transformations::EntityGenerator, :type => :generator do

  destination File.expand_path('../../../tmp/tests', __FILE__)

  before { prepare_destination }

  context 'entity generating process' do

    describe 'simple entity' do

      before(:each){ run_generator %w(user) }

      subject { file 'app/api/test_app/entities/users/default.rb' }

      it { should exist }

    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
grape-transformations-0.0.2 spec/generators/entity_generator_spec.rb
grape-transformations-0.0.1 spec/generators/entity_generator_spec.rb