Skip to content

Commit

Permalink
Merge pull request #8 from DFE-Digital/ci
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanjbrown authored Jun 7, 2022
2 parents 66846b1 + 2a7db37 commit 52acbc5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: build
name: Build

on:
workflow_dispatch:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
name: Run specs
strategy:
matrix:
ruby-version: ['2.7']
Expand Down
12 changes: 7 additions & 5 deletions spec/requests/analytics_spec.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
RSpec.describe 'Analytics flow', type: :request do
before do
model = Class.new(Candidate) do
include DfE::Analytics::Entities
end

stub_const('Candidate', model)

controller = Class.new(ApplicationController) do
include DfE::Analytics::Requests

def index
model = Class.new(Candidate) do
include DfE::Analytics::Entities
end

model.create(
Candidate.create(
email_address: 'a@b.com',
first_name: 'Mr',
last_name: 'Knox'
Expand Down

0 comments on commit 52acbc5

Please sign in to comment.