Sha256: 96b4d34aa5a8b3648ddfd337171943c5731b5e28cbfb1350ef9db843037744f0

Contents?: true

Size: 586 Bytes

Versions: 8

Compression:

Stored size: 586 Bytes

Contents

require 'spec_helper'

module OData
  describe ClassBuilder do
    describe "#initialize" do
      before(:each) do
        @methods = []
        @nav_props = []
        @svc = nil
        @namespace = nil
      end
      it "handles lowercase entities" do        
        klass = ClassBuilder.new 'product', @methods, @nav_props, @svc, @namespace
        result = klass.build
        result.should eq Product
      end
      it "should take in an instance of the service" do
        klass = ClassBuilder.new 'product', @methods, @nav_props, @svc, @namespace
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruby_odata-0.2.0.beta1 spec/class_builder_spec.rb
ruby_odata-0.1.6 spec/class_builder_spec.rb
ruby_odata-0.1.5 spec/class_builder_spec.rb
ruby_odata-0.1.4 spec/class_builder_spec.rb
ruby_odata-0.1.3 spec/class_builder_spec.rb
ruby_odata-0.1.2 spec/class_builder_spec.rb
ruby_odata-0.1.1 spec/class_builder_spec.rb
ruby_odata-0.1.0 spec/class_builder_spec.rb