Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (13 sloc) 0.381 kb
require 'spec_helper'
describe RailsAdmin::Config do
describe "ActiveRecord::Base.rails_admin" do
let(:config) { lambda {} }
it "should proxy to RailsAdmin::Config.model" do
RailsAdmin::Config.should_receive(:model) do |*args, &block|
args[0].should eql(Team)
block.should eql(config)
end
Team.rails_admin(&config)
end
end
end
Jump to Line
Something went wrong with that request. Please try again.