Sha256: ef4035b5b9c4521f24a198e07cf038d160567b51d07994602bfebc54cc7b889c

Contents?: true

Size: 492 Bytes

Versions: 1

Compression:

Stored size: 492 Bytes

Contents

require 'spec_helper'

describe Mavenlink::Specificators::Attribute do
  subject { model.new }

  before { described_class.apply(model) }

  let(:model) do
    Class.new Mavenlink::Model do
      def self.available_attributes
        %w(one two)
      end
    end
  end

  it { should respond_to :one }
  it { should respond_to :two }

  describe 'real model' do
    subject { Mavenlink::Workspace.new }

    it { should respond_to :title }
    it { should respond_to :description }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mavenlink-0.0.1 spec/lib/mavenlink/specificators/attribute_spec.rb