Skip to content

Instantly share code, notes, and snippets.

@cored
Created July 2, 2013 23:41
Show Gist options
  • Save cored/5914230 to your computer and use it in GitHub Desktop.
Save cored/5914230 to your computer and use it in GitHub Desktop.
# encoding: utf-8
require 'spec_helper'
describe Aggregate, '#type' do
subject { object.type }
let(:described_class) { Class.new(Attribute) { def self.type; Types::Object; end } }
let(:object) { described_class.new(:name) }
it { should equal(described_class) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment