Skip to content

Commit

Permalink
Add changes to changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
wenderjean committed Mar 14, 2019
1 parent d9ab642 commit 8a8a47f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- [ V2 ] Story:
- Stories can be updated when it's closed
- Block reserved words for new teams name
- Refactor `.csv` renderer

### Fixed
- Fix error in recaptcha when access page new team
Expand Down
7 changes: 5 additions & 2 deletions spec/controllers/stories_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,13 @@

describe '#index' do
context 'when responding to json' do
specify do
get :index, xhr: true, params: { project_id: project.id }
before { get :index, xhr: true, params: { project_id: project.id } }

it 'responds success' do
expect(response).to be_successful
end

it 'responds correct payload' do
expect(response.body).to eq(project.stories.to_json)
end
end
Expand Down

0 comments on commit 8a8a47f

Please sign in to comment.