Sha256: e980ef552c03331af8d898a9ebed58ac55e63d119bb09913bee1051ae27126c5

Contents?: true

Size: 858 Bytes

Versions: 28

Compression:

Stored size: 858 Bytes

Contents

require '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

28 entries across 28 versions & 1 rubygems

Version Path
lolita-4.0.11 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-4.2.0 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-4.0.10 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-4.0.9 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-4.0.8 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-4.0.7 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-4.0.6 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-4.0.5 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-4.0.4 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-4.0.3 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-4.0.2 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-4.0.1 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-4.0.0 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.4.3 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.4.2 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.4.1 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.4.0 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.3.9 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.3.8 spec/controllers/lolita_rest_nested_resources_spec.rb
lolita-3.3.7 spec/controllers/lolita_rest_nested_resources_spec.rb