Ember.js Persistence Foundation version of the Ember Data Example
Ruby JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
test
vendor
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
config.ru

README.md

Ember.js Persistence Foundation Example

This is a simple Rails 3.2 app created to demo Ember.js, (EPF) Ember.js Persistence Foundation and Active Model Serializers. It uses the edge versions of Ember and EPF.

This is a conversion of Dan Gebhardt Ember Data example. You can see the diff between the EPF example and Ember Data example here

The app itself is a simple, single-page contact manager styled with Twitter Bootstrap.

Screen shot

Installation

Assuming Ruby 1.9.2+ with bundler gem installed:

$ bundle install
$ bundle exec rake db:migrate
$ rails s

Test

Known issue some of the test are not working. I will fix this soon using Ember Testing and Karma.

Rails

MiniTest::Unit is used for testing the Rails application. To invoke tests:

$ bundle exec rake test

Integration

Capybara is used for integration testing. By default, the poltergeist driver is used, although selenium could be used as well. To change drivers, update the following line in test_helper.rb:

Capybara.default_driver = :selenium

Integration tests are performed by default when running bundle exec rake test. You can just run integration tests with:

$ bundle exec rake test:integration

Ember

The konacha test framework is used for testing the Ember application. To invoke the tests from the command line:

$ bundle exec rake konacha:run

To debug and run the tests in the browser, invoke:

$ bundle exec rake konacha:serve

... and then navigate to http://localhost:3500.

Contributions Welcome :)

Please help improve this example by filing issues and pull requests!

License

Copyright 2012 Dan Gebhardt. MIT License (see LICENSE for details).