This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "12": [ | |
| { | |
| "counts": {"sent": 0}, | |
| "datetime": "2015-02-14" | |
| }, | |
| { | |
| "counts": {"sent": 0}, | |
| "datetime": "2015-02-15" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rails_helper' | |
| RSpec.describe PostsController, :type => :controller do | |
| let(:fb_posts) { JSON.parse(File.read(Rails.root + "spec/support/fixtures/posts.json")) } | |
| let(:fb_post) { fb_posts["feed"]["data"][0] } | |
| describe "Get index" do | |
| it "test get#index method" do | |
| post = Post.create | |
| get :index | |
| expect(assigns(:posts)).to eq([post]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Refinery | |
| module Locations | |
| class Event < Refinery::Core::BaseModel | |
| validates :title, :presence => true, :uniqueness => true | |
| belongs_to :poster, :class_name => '::Refinery::Image' | |
| belongs_to :event_category |
NewerOlder