Sha256: d8bf1293c4abec00c2fdaabef20a73eebd7b207dff6103fd8dac551087d8ee35

Contents?: true

Size: 905 Bytes

Versions: 31

Compression:

Stored size: 905 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Lolita::RestController do
  render_views

  before(:each) do
    @controller.request.env["lolita.mapping"]=Lolita.mappings[:post]
  end

  it "should create new nested resources together with base resource"
#  do
#    p = {:title=>"Post 1"}
#    p[:comments_attributes] = [{:body=>"Comment 1"}, {:body=>"Comment 2"}]
#    post :create, :post=>p
#    Post.last.title.should == "Post 1"
#    puts Comment.all.to_a.inspect
#    Post.first.comments.length.should == 2
#    Post.first.comments.last.body.should == "Comment 2"
#  end

  it "should create new nested resources for existing base resource"

  it "should add new nested resources for existing base resource with existing nested resourcer"

  it "should remove nested resources from base resource"

  it "should modify nested resources for given base resource"


end



Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
lolita-3.2.0.rc.17 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.2.0.rc.16 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.2.0.rc.14 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.2.0.rc.13 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.2.0.rc.12 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.2.0.rc.11 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.2.0.rc.10 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.2.0.rc.9 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.2.0.rc.7 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.1.18 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.2.0.rc.6 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.2.0.rc.5 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.2.0.rc.4 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.2.0.rc.3 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.2.0.rc2 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.2.0.rc1 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.1.17 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.1.16 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.1.15 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.1.14 spec/controllers/lolita_rest_nested_resources_spec.rb